Created
August 28, 2017 08:48
-
-
Save jpcaparas/91c2d6acbf61dcef09cd6b15ef1bdb55 to your computer and use it in GitHub Desktop.
Quickly test Laravel email capabilities with Tinker
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
# cd into the app directory | |
cd <path-to-app> | |
# Enter the tinker REPL | |
php artisan tinker | |
# Run the simple command and check your inbox | |
$to = '<recipient-email>' | |
$from = '<sender-email>' | |
\Mail::raw('Test email', function($m) use ($to, $from) { $m->to($to); $m->from($from); }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment