在.env文件中设置如下
MAIL_DRIVER=smtp
MAIL_HOST=smtp.qq.com
MAIL_PORT=465
[email protected]
MAIL_PASSWORD=填写授权码(在QQ邮箱设置-账户-POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务-生成授权码)
MAIL_ENCRYPTION=ssl
在config/mail.php文件中设置如下
‘from‘ => [‘address‘ => ‘[email protected]‘, ‘name‘ => ‘Laravel5‘],
原文:https://blog.csdn.net/vichild/article/details/52486869
原文地址:https://www.cnblogs.com/sgm4231/p/10248032.html
时间: 2024-11-11 06:38:53