在app\Mail下建立SendMail class:$php artisan make:mail SendEmail 使用方式: xxx.blade.php: .env中記得mail config (以gmail為例): MAIL_MAILER=smtpMAIL_HOST=smtp.gmail.comMAIL_PORT=587MAIL_USERNAME=xxx@gmail.comMAIL_PASSWORD=*MAIL_ENCRYPTION=tlsMAIL_FROM_ADDRESS=xxx@gmail.comMAIL_FROM_NAME="${APP_NAME}" 本筆記參考:1. https://linuxhint.com/send_emails_laravel_smtp/