【问题标题】:unable to send emails though localhost wordpress using xampp无法通过 localhost wordpress 使用 xampp 发送电子邮件
【发布时间】:2015-07-16 10:39:16
【问题描述】:

我尝试了所有可能的解决方案,查看了stackoverflow 的所有答案,但没有任何效果。这是我的sendmail.ini 文件设置

smtp_server=smtp.gmail.com
smtp_port=465
smtp_ssl=auto
auth_username=myemail@gmail.com
auth_password=password
pop3_server=
pop3_username=
pop3_password=
force_sender=myemail@gmail.com
force_recipient=
hostname=localhost

还有我的php.ini 文件

[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
 SMTP = smtp.gmail.com
 smtp_port = 465

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = sinc964@gmail.com

; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program filesC:\xampp) fakemail and mailtodisk do not work correctly.
; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path.  
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the C:\xampp\mailoutput folder
;sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"

当我尝试使用contact-form-7 插件发送消息时,sendmail.exe 会弹出并停留在那里,并且此动画继续循环link
我浪费了半天的时间来解决这个问题,任何帮助都会很棒。

更新
我正在使用smtp4dev 软件,它通过本地主机接收发送的电子邮件,但在 google 或 yahoo 上都没有收到电子邮件。

【问题讨论】:

    标签: php wordpress smtp xampp localhost


    【解决方案1】:

    下载并安装SMTP4Dev,它会监听你的localhost上发送的e-mails

    还可以尝试使用与gmailSending With Gmail Doesn’t Work… What To Do? 不同的域。

    【讨论】:

    • 使用雅虎得到相同的结果:/
    【解决方案2】:

    使用 Phpmailer 从本地主机发送邮件

    【讨论】:

      【解决方案3】:

      请试试这个插件你的问题会很短:wordpress mail SMTP

      https://wordpress.org/plugins/wp-mail-smtp/
      

      如果您对设置有疑问,请询问我..

      【讨论】:

        猜你喜欢
        • 2012-05-07
        • 1970-01-01
        • 1970-01-01
        • 2021-09-12
        • 2013-03-30
        • 2018-03-08
        • 2014-08-28
        相关资源
        最近更新 更多