Skip to content

Instantly share code, notes, and snippets.

@rvbhute
Created March 10, 2015 15:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvbhute/a56000d287febc5515a9 to your computer and use it in GitHub Desktop.
Save rvbhute/a56000d287febc5515a9 to your computer and use it in GitHub Desktop.
Two ways to send emails from Laravel app
mail('mail@serversforhackers.com', 'Feedback', 'This is so useful, thanks!');
Mail::send('emails.test', ['key' => 'value'], function($message)
{
$message->to('foo@example.com', 'John Smith')->subject('Welcome!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment