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