Laravel发送邮件配置-问题解决

MAIL_DRIVER=smtp
MAIL_HOST=smtp.163.com
MAIL_PORT=465
MAIL_USERNAME=phpfangzhan@@@@@163.com
MAIL_PASSWORD=********
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=phpfangzhan@@@@@@163.com
MAIL_FROM_NAME=PHP仿站

错误提示
Expected response code 250 but got code "553", with message "553 Mail from must equal authorized use

解决办法:

最后两项是需要增加的

MAIL_FROM_ADDRESS=phpfangzhan@@@@@@163.com
MAIL_FROM_NAME=PHP仿站
posted @ 2019-01-10 09:35  小崔开发  阅读(660)  评论(0编辑  收藏  举报