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);
14 $mailPort = intval(env('MAIL_PORT', 587));
18 // Mail driver to use.
19 // From Laravel 7+ this is MAIL_MAILER in laravel.
20 // Kept as MAIL_DRIVER in BookStack to prevent breaking change.
21 // Options: smtp, sendmail, log, array
22 'default' => env('MAIL_DRIVER', 'smtp'),
24 // Global "From" address & name
27 'name' => env('MAIL_FROM_NAME', 'BookStack'),
30 // Mailer Configurations
31 // Available mailing methods and their settings.
34 'transport' => 'smtp',
36 'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
38 'username' => env('MAIL_USERNAME'),
39 'password' => env('MAIL_PASSWORD'),
40 'verify_peer' => env('MAIL_VERIFY_SSL', true),
42 'local_domain' => null,
43 'require_tls' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl' || $mailPort === 465),
47 'transport' => 'sendmail',
48 'path' => env('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
53 'channel' => env('MAIL_LOG_CHANNEL'),
57 'transport' => 'array',
61 'transport' => 'failover',