-
從http://glob.com.au/sendmail/下載sendmail.zip
-
解壓sendmail.zip到目錄下(最好使用短路徑,長路徑會導致問題的出現),我安裝的路徑是: E:\wamp\sendmail
3.修改php.ini 配置,我是使用的QQ郵箱發送郵件。配置如下圖所示: 
4.修改 sendmail.ini,文件路徑:E:\wamp\sendmail\sendmail.ini
smtp_server=smtp.qq.comsmtp_port=25auth_username= yourusername //123456789@qq.comauth_password=yourpassword // 騰訊郵箱授權第三方登錄授權碼,非QQ密碼force_sender= yourusername // 和auth_username 必須一樣,不然禁止發送
下面這兩項最好開啟,方便查看那里出問題了
; log smtp errors to error.log (defaults to same directory as sendmail.exe); uncomment to enable loggingerror_logfile=error.log; create debug log as debug.log (defaults to same directory as sendmail.exe); uncomment to enable debuggingdebug_logfile=debug.log
