]> BookStack Code Mirror - bookstack/blob - app/Config/mail.php
API Docs: Add Missing Fields in Example Responses
[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', '[email protected]'),
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' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl') ? 'smtps' : 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' => env('MAIL_EHLO_DOMAIN'),
42         ],
43
44         'sendmail' => [
45             'transport' => 'sendmail',
46             'path' => env('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
47         ],
48
49         'log' => [
50             'transport' => 'log',
51             'channel' => env('MAIL_LOG_CHANNEL'),
52         ],
53
54         'array' => [
55             'transport' => 'array',
56         ],
57
58         'failover' => [
59             'transport' => 'failover',
60             'mailers' => [
61                 'smtp',
62                 'log',
63             ],
64         ],
65     ],
66
67     // Email markdown configuration
68     'markdown' => [
69         'theme' => 'default',
70         'paths' => [
71             resource_path('views/vendor/mail'),
72         ],
73     ],
74 ];