SMTP server error: mail from address must be same as authorization userphp
The following From addree failed : @.qq.com安全
1 確保帳號密碼端口號正確,而且能夠密碼直接登陸,已經開啓了smtp 問題:如企業qq,須要經過微信安全驗證,能夠在設置中取消, 最好先手動登陸一次確認微信
2php openssl擴展和socket擴展開啓 使用qq smtp465端口 ,使用php -m查看 或 看phpinfosocket
php -r "var_dump(fsockopen('ssl://smtp.exmail.qq.com','465'));" 返回資源類型,能夠確認fsockopen可使用.net
Warning: fsockopen(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Command line code on line 1code
若是這個錯誤,要替換ssl證書 https://blog.csdn.net/w670328683/article/details/53442087server