]> BookStack Code Mirror - bookstack/blob - app/Config/mail.php
Merge branch 'development' of github.com:BookStackApp/BookStack into development
[bookstack] / app / Config / mail.php
1 <?php
2
3 /**
4  * Mail configuration options.
5  *
6  * Changes to these config files are not supported by BookStack and may break upon updates.
7  * Configuration should be altered via the `.env` file or environment variables.
8  * Do not edit this file unless you're happy to maintain any changes yourself.
9  */
10
11 // Configured mail encryption method.
12 // STARTTLS should still be attempted, but tls/ssl forces TLS usage.
13 $mailEncryption = env('MAIL_ENCRYPTION', null);
14
15 return [
16
17     // Mail driver to use.
18     // From Laravel 7+ this is MAIL_MAILER in laravel.
19     // Kept as MAIL_DRIVER in BookStack to prevent breaking change.
20     // Options: smtp, sendmail, log, array
21     'default' => env('MAIL_DRIVER', 'smtp'),
22
23     // Global "From" address & name
24     'from' => [
25         'address' => env('MAIL_FROM', 'bookstack@example.com'),
26         'name'    => env('MAIL_FROM_NAME', 'BookStack'),
27     ],
28
29     // Mailer Configurations
30     // Available mailing methods and their settings.
31     'mailers' => [
32         'smtp' => [
33             'transport' => 'smtp',
34             'scheme' => null,
35             'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
36             'port' => env('MAIL_PORT', 587),
37             'username' => env('MAIL_USERNAME'),
38             'password' => env('MAIL_PASSWORD'),
39             'verify_peer' => env('MAIL_VERIFY_SSL', true),
40             'timeout' => null,
41             'local_domain' => null,
42             'tls_required' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl'),
43         ],
44
45         'sendmail' => [
46             'transport' => 'sendmail',
47             'path' => env('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
48         ],
49
50         'log' => [
51             'transport' => 'log',
52             'channel' => env('MAIL_LOG_CHANNEL'),
53         ],
54
55         'array' => [
56             'transport' => 'array',
57         ],
58
59         'failover' => [
60             'transport' => 'failover',
61             'mailers' => [
62                 'smtp',
63                 'log',
64             ],
65         ],
66     ],
67 ];
Morty Proxy This is a proxified and sanitized view of the page, visit original site.