Created
March 10, 2015 15:37
-
-
Save rvbhute/a56000d287febc5515a9 to your computer and use it in GitHub Desktop.
Two ways to send emails from Laravel app
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
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