4 * Mail configuration options.
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.
11 // Configured mail encryption method.
12 // STARTTLS should still be attempted, but tls/ssl forces TLS usage.
13 $mailEncryption = env('MAIL_ENCRYPTION', null);
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'),
23 // Global "From" address & name
25 'address' => env('MAIL_FROM', 'bookstack@example.com'),
26 'name' => env('MAIL_FROM_NAME', 'BookStack'),
29 // Mailer Configurations
30 // Available mailing methods and their settings.
33 'transport' => 'smtp',
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),
41 'local_domain' => null,
42 'tls_required' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl'),
46 'transport' => 'sendmail',
47 'path' => env('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
52 'channel' => env('MAIL_LOG_CHANNEL'),
56 'transport' => 'array',
60 'transport' => 'failover',