]> BookStack Code Mirror - bookstack/blob - app/Config/mail.php
Followed Laravel 9 update steps and file changes
[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 return [
12
13     // Mail driver to use.
14     // From Laravel 7+ this is MAIL_MAILER in laravel.
15     // Kept as MAIL_DRIVER in BookStack to prevent breaking change.
16     // Options: smtp, sendmail, log, array
17     'default' => env('MAIL_DRIVER', 'smtp'),
18
19     // Global "From" address & name
20     'from' => [
21         'address' => env('MAIL_FROM', '[email protected]'),
22         'name'    => env('MAIL_FROM_NAME', 'BookStack'),
23     ],
24
25     // Mailer Configurations
26     // Available mailing methods and their settings.
27     'mailers' => [
28         'smtp' => [
29             'transport' => 'smtp',
30             'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
31             'port' => env('MAIL_PORT', 587),
32             'encryption' => env('MAIL_ENCRYPTION', 'tls'),
33             'username' => env('MAIL_USERNAME'),
34             'password' => env('MAIL_PASSWORD'),
35             'timeout' => null,
36             'local_domain' => env('MAIL_EHLO_DOMAIN'),
37         ],
38
39         'sendmail' => [
40             'transport' => 'sendmail',
41             'path' => '/usr/sbin/sendmail -bs',
42         ],
43
44         'log' => [
45             'transport' => 'log',
46             'channel' => env('MAIL_LOG_CHANNEL'),
47         ],
48
49         'array' => [
50             'transport' => 'array',
51         ],
52
53         'failover' => [
54             'transport' => 'failover',
55             'mailers' => [
56                 'smtp',
57                 'log',
58             ],
59         ],
60     ],
61
62     // Email markdown configuration
63     'markdown' => [
64         'theme' => 'default',
65         'paths' => [
66             resource_path('views/vendor/mail'),
67         ],
68     ],
69 ];