1.下載sendMail ,放在某個文件夾下面php
2.打開裏面的sendmail.ini 配置相應的參數(相應的端口,郵箱,密碼), 打開php.ini 配置裏面的參數:sendmail_from ,sendmail_path = "F:/wamp/SendMail/sendmail.exe -t",SMTP 配置