【发布时间】: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