| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | return [ | 3 | return [ | |
| 4 | 4 | |||
| 5 | /* | 5 | /* | |
| 6 | |-------------------------------------------------------------------------- | 6 | |-------------------------------------------------------------------------- | |
| 7 | | Default Mailer | 7 | | Default Mailer | |
| 8 | |-------------------------------------------------------------------------- | 8 | |-------------------------------------------------------------------------- | |
| 9 | | | 9 | | | |
| 10 | | This option controls the default mailer that is used to send any email | 10 | | This option controls the default mailer that is used to send any email | |
| 11 | | messages sent by your application. Alternative mailers may be setup | 11 | | messages sent by your application. Alternative mailers may be setup | |
| 12 | | and used as needed; however, this mailer will be used by default. | 12 | | and used as needed; however, this mailer will be used by default. | |
| 13 | | | 13 | | | |
| 14 | */ | 14 | */ | |
| 15 | 15 | |||
| 16 | 'default' => env('MAIL_MAILER', 'smtp'), | 16 | 'default' => env('MAIL_MAILER', 'smtp'), | |
| 17 | 17 | |||
| 18 | /* | 18 | /* | |
| 19 | |-------------------------------------------------------------------------- | 19 | |-------------------------------------------------------------------------- | |
| 20 | | Mailer Configurations | 20 | | Mailer Configurations | |
| 21 | |-------------------------------------------------------------------------- | 21 | |-------------------------------------------------------------------------- | |
| 22 | | | 22 | | | |
| 23 | | Here you may configure all of the mailers used by your application plus | 23 | | Here you may configure all of the mailers used by your application plus | |
| 24 | | their respective settings. Several examples have been configured for | 24 | | their respective settings. Several examples have been configured for | |
| 25 | | you and you are free to add your own as your application requires. | 25 | | you and you are free to add your own as your application requires. | |
| 26 | | | 26 | | | |
| 27 | | Laravel supports a variety of mail "transport" drivers to be used while | 27 | | Laravel supports a variety of mail "transport" drivers to be used while | |
| 28 | | sending an e-mail. You will specify which one you are using for your | 28 | | sending an e-mail. You will specify which one you are using for your | |
| 29 | | mailers below. You are free to add additional mailers as required. | 29 | | mailers below. You are free to add additional mailers as required. | |
| 30 | | | 30 | | | |
| 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", | |
| 32 | | "postmark", "log", "array" | 32 | | "postmark", "log", "array" | |
| 33 | | | 33 | | | |
| 34 | */ | 34 | */ | |
| 35 | 35 | |||
| 36 | 'mailers' => [ | 36 | 'mailers' => [ | |
| 37 | 'smtp' => [ | 37 | 'smtp' => [ | |
| 38 | 'transport' => 'smtp', | 38 | 'transport' => 'smtp', | |
| 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | |
| 40 | 'port' => env('MAIL_PORT', 587), | 40 | 'port' => env('MAIL_PORT', 587), | |
| 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), | 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), | |
| 42 | 'username' => env('MAIL_USERNAME'), | 42 | 'username' => env('MAIL_USERNAME'), | |
| 43 | 'password' => env('MAIL_PASSWORD'), | 43 | 'password' => env('MAIL_PASSWORD'), | |
| -+ | 44 | 'timeout' => null, | ||
| 45 | 'auth_mode' => null, | |||
| 44 | ], | = | 46 | ], |
| 45 | 47 | |||
| 46 | 'ses' => [ | 48 | 'ses' => [ | |
| 47 | 'transport' => 'ses', | 49 | 'transport' => 'ses', | |
| -+ | 50 | ], | ||
| 51 | ||||
| 52 | 'mailgun' => [ | |||
| 53 | 'transport' => 'mailgun', | |||
| 54 | ], | |||
| 55 | ||||
| 56 | 'postmark' => [ | |||
| 57 | 'transport' => 'postmark', | |||
| 48 | ], | = | 58 | ], |
| 49 | 59 | |||
| 50 | 'sendmail' => [ | 60 | 'sendmail' => [ | |
| 51 | 'transport' => 'sendmail', | 61 | 'transport' => 'sendmail', | |
| 52 | 'path' => '/usr/sbin/sendmail -bs', | 62 | 'path' => '/usr/sbin/sendmail -bs', | |
| 53 | ], | 63 | ], | |
| 54 | 64 | |||
| 55 | 'log' => [ | 65 | 'log' => [ | |
| 56 | 'transport' => 'log', | 66 | 'transport' => 'log', | |
| 57 | 'channel' => env('MAIL_LOG_CHANNEL'), | 67 | 'channel' => env('MAIL_LOG_CHANNEL'), | |
| 58 | ], | 68 | ], | |
| 59 | 69 | |||
| 60 | 'array' => [ | 70 | 'array' => [ | |
| 61 | 'transport' => 'array', | 71 | 'transport' => 'array', | |
| 62 | ], | 72 | ], | |
| 63 | ], | 73 | ], | |
| 64 | 74 | |||
| 65 | /* | 75 | /* | |
| 66 | |-------------------------------------------------------------------------- | 76 | |-------------------------------------------------------------------------- | |
| 67 | | Global "From" Address | 77 | | Global "From" Address | |
| 68 | |-------------------------------------------------------------------------- | 78 | |-------------------------------------------------------------------------- | |
| 69 | | | 79 | | | |
| 70 | | You may wish for all e-mails sent by your application to be sent from | 80 | | You may wish for all e-mails sent by your application to be sent from | |
| 71 | | the same address. Here, you may specify a name and address that is | 81 | | the same address. Here, you may specify a name and address that is | |
| 72 | | used globally for all e-mails that are sent by your application. | 82 | | used globally for all e-mails that are sent by your application. | |
| 73 | | | 83 | | | |
| 74 | */ | 84 | */ | |
| 75 | 85 | |||
| 76 | 'from' => [ | 86 | 'from' => [ | |
| 77 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), | 87 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), | |
| 78 | 'name' => env('MAIL_FROM_NAME', 'Example'), | 88 | 'name' => env('MAIL_FROM_NAME', 'Example'), | |
| 79 | ], | 89 | ], | |
| 80 | 90 | |||
| 81 | /* | 91 | /* | |
| 82 | |-------------------------------------------------------------------------- | 92 | |-------------------------------------------------------------------------- | |
| 83 | | Markdown Mail Settings | 93 | | Markdown Mail Settings | |
| 84 | |-------------------------------------------------------------------------- | 94 | |-------------------------------------------------------------------------- | |
| 85 | | | 95 | | | |
| 86 | | If you are using Markdown based email rendering, you may configure your | 96 | | If you are using Markdown based email rendering, you may configure your | |
| 87 | | theme and component paths here, allowing you to customize the design | 97 | | theme and component paths here, allowing you to customize the design | |
| 88 | | of the emails. Or, you may simply stick with the Laravel defaults! | 98 | | of the emails. Or, you may simply stick with the Laravel defaults! | |
| 89 | | | 99 | | | |
| 90 | */ | 100 | */ | |
| 91 | 101 | |||
| 92 | 'markdown' => [ | 102 | 'markdown' => [ | |
| 93 | 'theme' => 'default', | 103 | 'theme' => 'default', | |
| 94 | 104 | |||
| 95 | 'paths' => [ | 105 | 'paths' => [ | |
| 96 | resource_path('views/vendor/mail'), | 106 | resource_path('views/vendor/mail'), | |
| 97 | ], | 107 | ], | |
| 98 | ], | 108 | ], | |
| 99 | 109 | |||
| 100 | ]; | 110 | ]; |