<tfoot id='qeW0u'></tfoot>

<small id='qeW0u'></small><noframes id='qeW0u'>

  1. <legend id='qeW0u'><style id='qeW0u'><dir id='qeW0u'><q id='qeW0u'></q></dir></style></legend>
  2. <i id='qeW0u'><tr id='qeW0u'><dt id='qeW0u'><q id='qeW0u'><span id='qeW0u'><b id='qeW0u'><form id='qeW0u'><ins id='qeW0u'></ins><ul id='qeW0u'></ul><sub id='qeW0u'></sub></form><legend id='qeW0u'></legend><bdo id='qeW0u'><pre id='qeW0u'><center id='qeW0u'></center></pre></bdo></b><th id='qeW0u'></th></span></q></dt></tr></i><div id='qeW0u'><tfoot id='qeW0u'></tfoot><dl id='qeW0u'><fieldset id='qeW0u'></fieldset></dl></div>
    • <bdo id='qeW0u'></bdo><ul id='qeW0u'></ul>
    1. 如何让 XAMPP 在本地使用 php 的 mail() 函数,这样我就可以在本地测试我的 mail() 脚本而无需上传

      时间:2024-04-12
      • <bdo id='das8u'></bdo><ul id='das8u'></ul>

          1. <small id='das8u'></small><noframes id='das8u'>

          2. <legend id='das8u'><style id='das8u'><dir id='das8u'><q id='das8u'></q></dir></style></legend>
            <i id='das8u'><tr id='das8u'><dt id='das8u'><q id='das8u'><span id='das8u'><b id='das8u'><form id='das8u'><ins id='das8u'></ins><ul id='das8u'></ul><sub id='das8u'></sub></form><legend id='das8u'></legend><bdo id='das8u'><pre id='das8u'><center id='das8u'></center></pre></bdo></b><th id='das8u'></th></span></q></dt></tr></i><div id='das8u'><tfoot id='das8u'></tfoot><dl id='das8u'><fieldset id='das8u'></fieldset></dl></div>
            • <tfoot id='das8u'></tfoot>
                <tbody id='das8u'></tbody>

                本文介绍了如何让 XAMPP 在本地使用 php 的 mail() 函数,这样我就可以在本地测试我的 mail() 脚本而无需上传到我的服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我目前正在使用 XAMPP 和 Thunderbird 3,并希望设置我的本地服务器以将邮件发送到 gmail/hotmail/(anymail) 等电子邮件,以便我可以测试使用 mail() 函数的 php 脚本.这将节省一些时间,因为它会绕过每次进行细微更改时繁琐地保存和上传 php 文件的步骤.

                I am currently using XAMPP and Thunderbird 3 and wish to set up my local server to send mail to e-mails like gmail/hotmail/(anymail) so I can test out my php scripts that are using the mail() function. It would save some time as it would bypass the step of tediously saving and uploading the php file every time a minor change is made.

                我做过但没用的事情:(通过各种现有的在线教程)

                Things I have done but have not worked: (through various existing tutorials online)

                1. 已安装 XAMPP(已成功安装,因为我已经将它用于我的其他工作)
                2. 为 XAMPP 安装 Mercury
                3. 在水星中

                <小时>

                a. click on Configuration -> Manage Local Users
                b. Create New User
                

                <小时>

                          Username: **root**
                          Password: **root**
                c. click on Configuration -> Mercury SMTP
                d. make the following changes
                

                <小时>

                          IP Interface to use: **127.0.0.1**
                          Listen to TCP/IP port: **25**
                          Announce Myself as: **127.0.0.1**
                e. click on Configuration -> Mercury POP 3
                f. make the following changes
                

                <小时>

                          Listen to TCP port: **110**
                          IP Interface to use: **127.0.0.1**
                g. click on Configuration -> MercuryE SMTP client Configuration
                h. make the following changes
                

                <小时>

                          Identify Myself as: **127.0.0.1**
                          Name server: **127.0.0.1**
                i. click on Configuration -> Mercury D pop3 client
                j. make the following changes
                

                <小时>

                          POP3 Host: **127.0.0.1**
                          Username: **root**
                          Password: **root**
                

                4.安装雷鸟 35. 在雷鸟中

                4. Installed Thunderbird 3 5. In Thunderbird

                a. click on Tools -> Account Settings
                b. In Account Settings
                

                <小时>

                    i. click on Account Actions -> Add Mail Account
                    ii. In Add Mail Account
                

                <小时>

                        Your name: **root**
                        Email address: **root@localhost.com**
                        Password: **root**
                    iii. click next
                    vi. under Editing Config set as following
                

                <小时>

                        Username: **root**
                        Incoming: 127.0.0.1   POP/IMAP
                        Outgoing: 127.0.0.1   SMTP
                    v. click Create Account
                c. send test mail to myself (this part doesn't work for me, it says mail sent successfully but when I check inbox in Thunderbird, there is no mail.)
                

                4.测试 PHP mail() 脚本(我还没有到这一步,因为我还没有能够成功设置本地邮件服务器.)

                4. Test PHP mail() script (I haven't gotten to this step yet as I have not yet been able to successfully set up a local mail server.)

                推荐答案

                这些在我遇到问题时帮助了我.

                These helped me out when I was having trouble.

                http://www.danieltmurphy.com/setting-up-mercury-smtp/

                http://www.youtube.com/watch?v=VU4PT7xMSO0

                可以从 Xampp 控制面板激活 Mercury.

                Mercury can be activated from the Xampp control panel.

                这篇关于如何让 XAMPP 在本地使用 php 的 mail() 函数,这样我就可以在本地测试我的 mail() 脚本而无需上传到我的服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:“错误 1067:进程意外终止"尝试启动 MySQL 时 下一篇:PHP session_start 失败

                相关文章

                    <bdo id='oaG19'></bdo><ul id='oaG19'></ul>

                1. <i id='oaG19'><tr id='oaG19'><dt id='oaG19'><q id='oaG19'><span id='oaG19'><b id='oaG19'><form id='oaG19'><ins id='oaG19'></ins><ul id='oaG19'></ul><sub id='oaG19'></sub></form><legend id='oaG19'></legend><bdo id='oaG19'><pre id='oaG19'><center id='oaG19'></center></pre></bdo></b><th id='oaG19'></th></span></q></dt></tr></i><div id='oaG19'><tfoot id='oaG19'></tfoot><dl id='oaG19'><fieldset id='oaG19'></fieldset></dl></div>

                  <small id='oaG19'></small><noframes id='oaG19'>

                2. <tfoot id='oaG19'></tfoot>

                    <legend id='oaG19'><style id='oaG19'><dir id='oaG19'><q id='oaG19'></q></dir></style></legend>