Skip to content

Instantly share code, notes, and snippets.

@jpcaparas
Created August 28, 2017 08:48
Show Gist options
  • Save jpcaparas/91c2d6acbf61dcef09cd6b15ef1bdb55 to your computer and use it in GitHub Desktop.
Save jpcaparas/91c2d6acbf61dcef09cd6b15ef1bdb55 to your computer and use it in GitHub Desktop.
Quickly test Laravel email capabilities with Tinker
# 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