laravel版本:6.0
google 應用專用密碼設定
修改.env檔案
MAIL_DRIVER=smtp MAIL_HOST=smtp.gmail.com MAIL_PORT=465 MAIL_USERNAME=123@gmail.com MAIL_PASSWORD=應用專用密碼 MAIL_ENCRYPTION=ssl MAIL_FROM_NAME=Crrox
修改mail配置檔案
'stream' => [ 'ssl' => [ 'allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false, ], ],
本作品採用《CC 協議》,轉載必須註明作者和本文連結