Created
June 7, 2016 13:47
-
-
Save novasky-zz/06026742e9c486124910b98c8a7e21b9 to your computer and use it in GitHub Desktop.
Laravel: Attaching files to emails
This file contains hidden or 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::send('emails.whitepaper', [], function ($m) { | |
$m->to('[email protected]'); | |
$m->subject('Your whitepaper download'); | |
$m->attach(storage_path('pdfs/whitepaper.pdf')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment