BookStack/app/Config/mail.php

76 lines
2.2 KiB
PHP
Raw Normal View History

2015-07-12 15:01:42 -04:00
<?php
/**
* 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 15:01:42 -04:00
// Configured mail encryption method.
// STARTTLS should still be attempted, but tls/ssl forces TLS usage.
$mailEncryption = env('MAIL_ENCRYPTION', null);
return [
2015-07-12 15:01:42 -04:00
// Mail driver to use.
// From Laravel 7+ this is MAIL_MAILER in laravel.
// Kept as MAIL_DRIVER in BookStack to prevent breaking change.
// Options: smtp, sendmail, log, array
'default' => env('MAIL_DRIVER', 'smtp'),
2015-07-12 15:01:42 -04:00
// Global "From" address & name
'from' => [
'address' => env('MAIL_FROM', 'bookstack@example.com'),
2021-06-26 11:23:15 -04:00
'name' => env('MAIL_FROM_NAME', 'BookStack'),
],
2015-07-12 15:01:42 -04:00
// Mailer Configurations
// Available mailing methods and their settings.
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'scheme' => null,
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'verify_peer' => env('MAIL_VERIFY_SSL', true),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN'),
'tls_required' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl'),
],
2015-07-12 15:01:42 -04:00
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_COMMAND', '/usr/sbin/sendmail -bs'),
],
2015-07-12 15:01:42 -04:00
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
2015-07-12 15:01:42 -04:00
'array' => [
'transport' => 'array',
],
'failover' => [
'transport' => 'failover',
'mailers' => [
'smtp',
'log',
],
],
],
2015-07-12 15:01:42 -04:00
// Email markdown configuration
'markdown' => [
'theme' => 'default',
'paths' => [
resource_path('views/vendor/mail'),
],
],
2015-07-12 15:01:42 -04:00
];