Skip to content

Instantly share code, notes, and snippets.

@rvbhute

rvbhute/mail vs Mail

Created Mar 10, 2015
Embed
What would you like to do?
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