06.10.2016 Views

laravel-5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Mail 399<br />

1 'ses' => [<br />

2 'key' => 'your-ses-key',<br />

3 'secret' => 'your-ses-secret',<br />

4 'region' => 'ses-region', // e.g. us-east-1<br />

5 ],<br />

Sending Mail<br />

Laravel allows you to store your e-mail messages in views. For example, to organize your e-mails,<br />

you could create an emails directory within your resources/views directory:<br />

To send a message, use the send method on the Mail facade. The send method accepts three<br />

arguments. First, the name of a view that contains the e-mail message. Secondly, an array of data<br />

you wish to pass to the view. Lastly, a Closure callback which receives a message instance, allowing<br />

you to customize the recipients, subject, and other aspects of the mail message:<br />

1

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!