Forked from emmanuelbarturen/testing mail in droplet with laravel
Last active
January 16, 2019 09:56
-
-
Save agoalofalife/c3b4bdab9ff4084e0fc15ffac6917461 to your computer and use it in GitHub Desktop.
send email from artisan with tinker of laravel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SSH into droplet | |
# go to project | |
$ php artisan tinker | |
$ Mail::send('errors.401', [], function ($message) { $message->to('[email protected]')->subject('this works!'); }); | |
Mail::raw('test', function ($message) {$message->subject('Тестовая тема');$message->from('[email protected]');$message->to('[email protected]');}); | |
# check your mailbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment