2015-07-12 21:01:42 +02:00
|
|
|
<?php
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
/**
|
|
|
|
* Mail configuration options.
|
|
|
|
*
|
|
|
|
* Changes to these config files are not supported by BookStack and may break upon updates.
|
|
|
|
* Configuration should be altered via the `.env` file or environment variables.
|
|
|
|
* Do not edit this file unless you're happy to maintain any changes yourself.
|
|
|
|
*/
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2023-06-24 12:27:18 +02:00
|
|
|
// Configured mail encryption method.
|
|
|
|
// STARTTLS should still be attempted, but tls/ssl forces TLS usage.
|
|
|
|
$mailEncryption = env('MAIL_ENCRYPTION', null);
|
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
return [
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Mail driver to use.
|
2021-10-26 23:04:18 +02:00
|
|
|
// From Laravel 7+ this is MAIL_MAILER in laravel.
|
|
|
|
// Kept as MAIL_DRIVER in BookStack to prevent breaking change.
|
2021-03-27 16:56:36 +01:00
|
|
|
// Options: smtp, sendmail, log, array
|
2023-02-06 17:58:29 +01:00
|
|
|
'default' => env('MAIL_DRIVER', 'smtp'),
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Global "From" address & name
|
|
|
|
'from' => [
|
2023-09-09 13:39:01 +02:00
|
|
|
'address' => env('MAIL_FROM', 'bookstack@example.com'),
|
2021-06-26 17:23:15 +02:00
|
|
|
'name' => env('MAIL_FROM_NAME', 'BookStack'),
|
2018-12-23 17:26:39 +01:00
|
|
|
],
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2023-02-06 17:58:29 +01:00
|
|
|
// Mailer Configurations
|
|
|
|
// Available mailing methods and their settings.
|
|
|
|
'mailers' => [
|
|
|
|
'smtp' => [
|
|
|
|
'transport' => 'smtp',
|
2023-07-04 16:21:31 +02:00
|
|
|
'scheme' => null,
|
2023-02-06 17:58:29 +01:00
|
|
|
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
|
|
|
|
'port' => env('MAIL_PORT', 587),
|
|
|
|
'username' => env('MAIL_USERNAME'),
|
|
|
|
'password' => env('MAIL_PASSWORD'),
|
2023-04-23 16:04:35 +02:00
|
|
|
'verify_peer' => env('MAIL_VERIFY_SSL', true),
|
2023-02-06 17:58:29 +01:00
|
|
|
'timeout' => null,
|
|
|
|
'local_domain' => env('MAIL_EHLO_DOMAIN'),
|
2023-07-04 16:21:31 +02:00
|
|
|
'tls_required' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl'),
|
2023-02-06 17:58:29 +01:00
|
|
|
],
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2023-02-06 17:58:29 +01:00
|
|
|
'sendmail' => [
|
|
|
|
'transport' => 'sendmail',
|
2023-02-17 15:25:38 +01:00
|
|
|
'path' => env('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
|
2023-02-06 17:58:29 +01:00
|
|
|
],
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2023-02-06 17:58:29 +01:00
|
|
|
'log' => [
|
|
|
|
'transport' => 'log',
|
|
|
|
'channel' => env('MAIL_LOG_CHANNEL'),
|
|
|
|
],
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2023-02-06 17:58:29 +01:00
|
|
|
'array' => [
|
|
|
|
'transport' => 'array',
|
|
|
|
],
|
|
|
|
|
|
|
|
'failover' => [
|
|
|
|
'transport' => 'failover',
|
|
|
|
'mailers' => [
|
|
|
|
'smtp',
|
|
|
|
'log',
|
|
|
|
],
|
|
|
|
],
|
|
|
|
],
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2018-12-23 17:26:39 +01:00
|
|
|
// Email markdown configuration
|
2018-12-16 21:44:57 +01:00
|
|
|
'markdown' => [
|
|
|
|
'theme' => 'default',
|
|
|
|
'paths' => [
|
|
|
|
resource_path('views/vendor/mail'),
|
|
|
|
],
|
|
|
|
],
|
2015-07-12 21:01:42 +02:00
|
|
|
];
|