无法使用 xampp 通过 localhost wordpress 发送电子邮件
unable to send emails though localhost wordpress using xampp
我尝试了所有可能的解决方案,查看了 Whosebug
中的每个答案,但没有任何效果。这是我的 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 上都没有收到电子邮件。
下载并安装 SMTP4Dev
,它将监听 localhost
上发送的 e-mails
。
也尝试使用与 gmail
、Sending With Gmail Doesn’t Work… What To Do?.
不同的域
使用 Phpmailer 从本地主机发送邮件
请试试这个插件你的问题会很短:wordpress mail SMTP
https://wordpress.org/plugins/wp-mail-smtp/
如果您对设置有疑问,请问我..
我尝试了所有可能的解决方案,查看了 Whosebug
中的每个答案,但没有任何效果。这是我的 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 上都没有收到电子邮件。
下载并安装 SMTP4Dev
,它将监听 localhost
上发送的 e-mails
。
也尝试使用与 gmail
、Sending With Gmail Doesn’t Work… What To Do?.
使用 Phpmailer 从本地主机发送邮件
请试试这个插件你的问题会很短:wordpress mail SMTP
https://wordpress.org/plugins/wp-mail-smtp/
如果您对设置有疑问,请问我..