在.env文件中设置如下
MAIL_DRIVER=smtp
MAIL_HOST=smtp.qq.com
MAIL_PORT=465
MAIL_USERNAME=00000000000@qq.com
MAIL_PASSWORD=填写授权码(在QQ邮箱设置-账户-POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务-生成授权码)
MAIL_ENCRYPTION=ssl
在config/mail.php文件中设置如下
'from' => ['address' => '00000000000@qq.com', 'name' => 'Laravel5'],
原文:https://blog.csdn.net/vichild/article/details/52486869