| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | return [ | 3 | return [ | |
| 4 | 4 | |||
| 5 | /* | 5 | /* | |
| 6 | |-------------------------------------------------------------------------- | 6 | |-------------------------------------------------------------------------- | |
| 7 | | Mail Driver | <> | 7 | | Default Mailer |
| 8 | |-------------------------------------------------------------------------- | = | 8 | |-------------------------------------------------------------------------- |
| 9 | | | 9 | | | |
| 10 | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | <> | 10 | | This option controls the default mailer that is used to send any email |
| 11 | | sending of e-mail. You may specify which one you're using throughout | |||
| 12 | | your application here. By default, Laravel is setup for SMTP mail. | 11 | | messages sent by your application. Alternative mailers may be setup | |
| 13 | | | 12 | | and used as needed; however, this mailer will be used by default. | |
| 14 | | Supported: "smtp", "sendmail", "mailgun", "ses", | |||
| 15 | | "postmark", "log", "array" | |||
| 16 | | | = | 13 | | |
| 17 | */ | 14 | */ | |
| 18 | 15 | |||
| 19 | 'driver' => env('MAIL_DRIVER', 'smtp'), | <> | 16 | 'default' => env('MAIL_MAILER', 'smtp'), |
| 20 | = | 17 | ||
| 21 | /* | 18 | /* | |
| 22 | |-------------------------------------------------------------------------- | 19 | |-------------------------------------------------------------------------- | |
| 23 | | SMTP Host Address | <> | 20 | | Mailer Configurations |
| 24 | |-------------------------------------------------------------------------- | = | 21 | |-------------------------------------------------------------------------- |
| 25 | | | 22 | | | |
| 26 | | Here you may provide the host address of the SMTP server used by your | <> | ||
| 27 | | applications. A default option is provided that is compatible with | 23 | | Here you may configure all of the mailers used by your application plus | |
| 28 | | the Mailgun mail service which will provide reliable deliveries. | 24 | | their respective settings. Several examples have been configured for | |
| 25 | | you and you are free to add your own as your application requires. | |||
| 29 | | | = | 26 | | |
| 30 | */ | <> | 27 | | Laravel supports a variety of mail "transport" drivers to be used while |
| 31 | 28 | | sending an e-mail. You will specify which one you are using for your | ||
| 32 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | |||
| 33 | 29 | | mailers below. You are free to add additional mailers as required. | ||
| 34 | /* | |||
| 35 | |-------------------------------------------------------------------------- | |||
| 36 | | SMTP Host Port | |||
| 37 | |-------------------------------------------------------------------------- | |||
| 38 | | | = | 30 | | |
| 39 | | This is the SMTP port used by your application to deliver e-mails to | <> | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", |
| 40 | | users of the application. Like the host we have set this value to | 32 | | "postmark", "log", "array" | |
| 41 | | stay compatible with the Mailgun e-mail application by default. | |||
| 42 | | | = | 33 | | |
| 43 | */ | 34 | */ | |
| 44 | 35 | |||
| <> | 36 | 'mailers' => [ | ||
| 37 | 'smtp' => [ | |||
| 38 | 'transport' => 'smtp', | |||
| 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), | |||
| 45 | 'port' => env('MAIL_PORT', 587), | 40 | 'port' => env('MAIL_PORT', 587), | |
| 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), | |||
| 42 | 'username' => env('MAIL_USERNAME'), | |||
| 43 | 'password' => env('MAIL_PASSWORD'), | |||
| 44 | ], | |||
| 45 | ||||
| 46 | 'ses' => [ | |||
| 47 | 'transport' => 'ses', | |||
| 48 | ], | |||
| 49 | ||||
| 50 | 'sendmail' => [ | |||
| 51 | 'transport' => 'sendmail', | |||
| 52 | 'path' => '/usr/sbin/sendmail -bs', | |||
| 53 | ], | |||
| 54 | ||||
| 55 | 'log' => [ | |||
| 56 | 'transport' => 'log', | |||
| 57 | 'channel' => env('MAIL_LOG_CHANNEL'), | |||
| 58 | ], | |||
| 59 | ||||
| 60 | 'array' => [ | |||
| 61 | 'transport' => 'array', | |||
| 62 | ], | |||
| 63 | ], | |||
| 46 | = | 64 | ||
| 47 | /* | 65 | /* | |
| 48 | |-------------------------------------------------------------------------- | 66 | |-------------------------------------------------------------------------- | |
| 49 | | Global "From" Address | 67 | | Global "From" Address | |
| 50 | |-------------------------------------------------------------------------- | 68 | |-------------------------------------------------------------------------- | |
| 51 | | | 69 | | | |
| 52 | | You may wish for all e-mails sent by your application to be sent from | 70 | | You may wish for all e-mails sent by your application to be sent from | |
| 53 | | the same address. Here, you may specify a name and address that is | 71 | | the same address. Here, you may specify a name and address that is | |
| 54 | | used globally for all e-mails that are sent by your application. | 72 | | used globally for all e-mails that are sent by your application. | |
| 55 | | | 73 | | | |
| 56 | */ | 74 | */ | |
| 57 | 75 | |||
| 58 | 'from' => [ | 76 | 'from' => [ | |
| 59 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), | 77 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), | |
| 60 | 'name' => env('MAIL_FROM_NAME', 'Example'), | 78 | 'name' => env('MAIL_FROM_NAME', 'Example'), | |
| 61 | ], | 79 | ], | |
| 62 | +- | |||
| 63 | /* | |||
| 64 | |-------------------------------------------------------------------------- | |||
| 65 | | E-Mail Encryption Protocol | |||
| 66 | |-------------------------------------------------------------------------- | |||
| 67 | | | |||
| 68 | | Here you may specify the encryption protocol that should be used when | |||
| 69 | | the application send e-mail messages. A sensible default using the | |||
| 70 | | transport layer security protocol should provide great security. | |||
| 71 | | | |||
| 72 | */ | |||
| 73 | ||||
| 74 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), | |||
| 75 | ||||
| 76 | /* | |||
| 77 | |-------------------------------------------------------------------------- | |||
| 78 | | SMTP Server Username | |||
| 79 | |-------------------------------------------------------------------------- | |||
| 80 | | | |||
| 81 | | If your SMTP server requires a username for authentication, you should | |||
| 82 | | set it here. This will get used to authenticate with your server on | |||
| 83 | | connection. You may also set the "password" value below this one. | |||
| 84 | | | |||
| 85 | */ | |||
| 86 | ||||
| 87 | 'username' => env('MAIL_USERNAME'), | |||
| 88 | ||||
| 89 | 'password' => env('MAIL_PASSWORD'), | |||
| 90 | ||||
| 91 | /* | |||
| 92 | |-------------------------------------------------------------------------- | |||
| 93 | | Sendmail System Path | |||
| 94 | |-------------------------------------------------------------------------- | |||
| 95 | | | |||
| 96 | | When using the "sendmail" driver to send e-mails, we will need to know | |||
| 97 | | the path to where Sendmail lives on this server. A default path has | |||
| 98 | | been provided here, which will work well on most of your systems. | |||
| 99 | | | |||
| 100 | */ | |||
| 101 | ||||
| 102 | 'sendmail' => '/usr/sbin/sendmail -bs', | |||
| 103 | = | 80 | ||
| 104 | /* | 81 | /* | |
| 105 | |-------------------------------------------------------------------------- | 82 | |-------------------------------------------------------------------------- | |
| 106 | | Markdown Mail Settings | 83 | | Markdown Mail Settings | |
| 107 | |-------------------------------------------------------------------------- | 84 | |-------------------------------------------------------------------------- | |
| 108 | | | 85 | | | |
| 109 | | If you are using Markdown based email rendering, you may configure your | 86 | | If you are using Markdown based email rendering, you may configure your | |
| 110 | | theme and component paths here, allowing you to customize the design | 87 | | theme and component paths here, allowing you to customize the design | |
| 111 | | of the emails. Or, you may simply stick with the Laravel defaults! | 88 | | of the emails. Or, you may simply stick with the Laravel defaults! | |
| 112 | | | 89 | | | |
| 113 | */ | 90 | */ | |
| 114 | 91 | |||
| 115 | 'markdown' => [ | 92 | 'markdown' => [ | |
| 116 | 'theme' => 'default', | 93 | 'theme' => 'default', | |
| 117 | 94 | |||
| 118 | 'paths' => [ | 95 | 'paths' => [ | |
| 119 | resource_path('views/vendor/mail'), | 96 | resource_path('views/vendor/mail'), | |
| 120 | ], | 97 | ], | |
| 121 | ], | 98 | ], | |
| 122 | 99 | |||
| 123 | /* | +- | ||
| 124 | |-------------------------------------------------------------------------- | |||
| 125 | | Log Channel | |||
| 126 | |-------------------------------------------------------------------------- | |||
| 127 | | | |||
| 128 | | If you are using the "log" driver, you may specify the logging channel | |||
| 129 | | if you prefer to keep mail messages separate from other log entries | |||
| 130 | | for simpler reading. Otherwise, the default channel will be used. | |||
| 131 | | | |||
| 132 | */ | |||
| 133 | ||||
| 134 | 'log_channel' => env('MAIL_LOG_CHANNEL'), | |||
| 135 | ||||
| 136 | ]; | = | 100 | ]; |