Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使XAMPP在本地使用php';s mail()函数,这样我就可以在本地测试mail()脚本,而不必上传到服务器?_Php_Email_Xampp_Thunderbird - Fatal编程技术网

如何使XAMPP在本地使用php';s mail()函数,这样我就可以在本地测试mail()脚本,而不必上传到服务器?

如何使XAMPP在本地使用php';s mail()函数,这样我就可以在本地测试mail()脚本,而不必上传到服务器?,php,email,xampp,thunderbird,Php,Email,Xampp,Thunderbird,我目前正在使用XAMPP和Thunderbird 3,希望设置我的本地服务器,将邮件发送到gmail/hotmail/(anymail)等电子邮件,以便测试使用mail()函数的php脚本。这将节省一些时间,因为它将绕过每次进行微小更改时繁琐地保存和上载php文件的步骤 我做过但没有做过的事情:(通过各种现有的在线教程) 已安装XAMPP(已成功安装,因为我已将其用于其他工作) XAMPP安装的Mercury 水银 四,。安装雷鸟3 5.雷鸟 四,。Test PHP mai

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

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


  • 已安装XAMPP(已成功安装,因为我已将其用于其他工作)
  • XAMPP安装的Mercury
  • 水银






  • 四,。安装雷鸟3 5.雷鸟






    四,。Test PHP mail()脚本(我还没有完成这一步,因为我还没有成功地设置本地邮件服务器。)

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


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

    localhost.com
    ?尝试
    localhost
    。还有,你把邮件发到哪里去了?第二封——视频——对我帮助很大。我讨厌使用youtube视频来尝试跟随,所以我最后停了很多,希望有人能给出明确的书面指示。
    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**
    
    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.)