1. 开启 QQ 邮箱的 SMTP 支持



2.里面会一个类似于密码之类(复制一下)
3.然后再 .env文件里面配置一下

MAIL_DRIVER=smtp ------ 使用支持 ESMTP 的 SMTP 服务器发送邮件;
MAIL_HOST=smtp.qq.com ------ QQ 邮箱的 SMTP 服务器地址,必须为此值;
MAIL_PORT=25 ------ QQ 邮箱的 SMTP 服务器端口,必须为此值;
MAIL_USERNAME=xxxxxxxxxxxxxx@qq.com ------ 请将此值换为你的 QQ + @qq.com;
MAIL_PASSWORD=xxxxxxxxx ------ 密码是我们第一步拿到的授权码;
MAIL_ENCRYPTION=tls ------ 加密类型,选项 null 表示不使用任何加密,其他选项还有 ssl,这里我们使用 tls 即可。
MAIL_FROM_ADDRESS=xxxxxxxxxxxxxx@qq.com ------ 此值必须同 MAIL_USERNAME 一致;
MAIL_FROM_NAME=WeiboApp ------ 用来作为邮件的发送者名称。