Laravel邮箱配置

@爱耍流氓的唐僧  August 24, 2021

之前配置邮箱总是有点问题,一直也没有通过blog的方式进行相应的记录,这次就记录下的laravel的邮件配置,注意MAIL_USERNAME和MAIL_FROM_ADDRESS的一致性

MAIL_MAILER=smtp
MAIL_HOST=smtp.partner.outlook.cn
MAIL_PORT=587
MAIL_USERNAME=myemail@hotmail.com (this must be the same as MAIL_FROM_ADDRESS!)
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=myemail@hotmail.com (this must be the same as MAIL_USERNAME!)

添加新评论