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