在 .env 文件中设置如下
MAIL_DRIVER=smtp
MAIL_HOST=smtp.qq.com
MAIL_PORT=465
MAIL_USERNAME=***@qq.com
MAIL_PASSWORD=填写授权码
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=***@qq.com
MAIL_FROM_NAME=name
获取QQ授权吗
设置-账户-POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务-生成授权码
MAIL_DRIVER=smtp
MAIL_HOST=smtp.qq.com
MAIL_PORT=465
MAIL_USERNAME=***@qq.com
MAIL_PASSWORD=填写授权码
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=***@qq.com
MAIL_FROM_NAME=name
设置-账户-POP3/IMAP/SMTP/Exchange/CardDAV/CalDAV服务-生成授权码