Last active
October 5, 2018 07:26
-
-
Save atheken/fa58ec859667f391408f235174c14a90 to your computer and use it in GitHub Desktop.
Example `config/mail.php` to send mail using Postmark from Laravel
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
<?php | |
return [ | |
'username' => env('<YOUR_POSTMARK_SERVER_TOKEN>'), | |
'password' => env('<YOUR_POSTMARK_SERVER_TOKEN>'), | |
'host' => env('MAIL_HOST', 'smtp.postmarkapp.com'), | |
// Optionally, set "smtp" to "log" if you want to trap emails during testing. | |
'driver' => env('MAIL_DRIVER', 'smtp'), | |
'port' => env('MAIL_PORT', 587), | |
'encryption' => env('MAIL_ENCRYPTION', 'tls'), | |
/* | |
|-------------------------------------------------------------------------- | |
| Global "From" Address | |
|-------------------------------------------------------------------------- | |
| | |
| You may wish for all e-mails sent by your application to be sent from | |
| the same address. Here, you may specify a name and address that is | |
| used globally for all e-mails that are sent by your application. | |
| | |
| It is also OK to not set this from address here and specify it on each message. | |
| | |
| Remember, when using Postmark, the sending address must be a valid | |
| Sender Signature that you have already configured. | |
*/ | |
'from' => ['address' => null, 'name' => null], | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment