-
从http://glob.com.au/sendmail/下载sendmail.zip
-
解压sendmail.zip到目录下(最好使用短路径,长路径会导致问题的出现),我安装的路径是: E:wampsendmail
3.修改php.ini 配置,我是使用的QQ邮箱发送邮件。配置如下图所示:
4.修改 sendmail.ini,文件路径:E:wampsendmailsendmail.ini
smtp_server=smtp.qq.com
smtp_port=25
auth_username= yourusername //123456789@qq.com
auth_password=yourpassword // 腾讯邮箱授权第三方登录授权码,非QQ密码
force_sender= yourusername // 和auth_username 必须一样,不然禁止发送
下面这两项最好开启,方便查看那里出问题了
; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging
error_logfile=error.log
; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging
debug_logfile=debug.log