mail - dich1/todo GitHub Wiki

sendgrit

https://sendgrid.com/docs/for-developers/sending-email/laravel/

heroku addons:add sendgrid:starter
heroku config:set MAIL_HOST=smtp.sendgrid.net
heroku config:set MAIL_USERNAME=$(heroku config:get SENDGRID_USERNAME)
heroku config:set MAIL_PASSWORD=$(heroku config:get SENDGRID_PASSWORD)

メールのローカル環境構築

https://www.nyamucoro.com/entry/2018/09/24/232338

新規登録メール認証

https://qiita.com/sola-msr/items/1c1b51d7c90db395a85d

新規登録メール文言変更

https://qol-kk.com/wp2/blog/2019/01/18/post-1048/ https://it-kunip.site/php/verify-email/

php artisan make:notification CustomVerifyEmail

テスト用

Route::get('new-mail', function () {
    return (new App\Notifications\CustomVerifyEmail())
                ->toMail('宛先');
});

パスワードリセットメール文言変更

https://www.ravness.com/2018/07/laravelmail/ https://note.mu/koushikagawa/n/n857ae116f244 https://it-kunip.site/php/reset-password/ https://qiita.com/usaginooheso/items/9d61361d449a521a5854

php artisan make:notification CustomResetPassword
php artisan vendor:publish --tag=laravel-notifications

テスト用

Route::get('mail', function () {
    return (new App\Notifications\CustomResetPassword('トークン'))
                ->toMail('宛先');
});