* Do not edit this file unless you're happy to maintain any changes yourself.
*/
+// Configured mail encryption method.
+// STARTTLS should still be attempted, but tls/ssl forces TLS usage.
+$mailEncryption = env('MAIL_ENCRYPTION', null);
+
return [
// Mail driver to use.
// Global "From" address & name
'from' => [
- 'address' => env('MAIL_FROM', 'mail@bookstackapp.com'),
+ 'address' => env('MAIL_FROM', 'bookstack@example.com'),
'name' => env('MAIL_FROM_NAME', 'BookStack'),
],
'mailers' => [
'smtp' => [
'transport' => 'smtp',
+ 'scheme' => null,
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
- 'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'verify_peer' => env('MAIL_VERIFY_SSL', true),
'timeout' => null,
- 'local_domain' => env('MAIL_EHLO_DOMAIN'),
+ 'local_domain' => null,
+ 'tls_required' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl'),
],
'sendmail' => [
],
],
],
-
- // Email markdown configuration
- 'markdown' => [
- 'theme' => 'default',
- 'paths' => [
- resource_path('views/vendor/mail'),
- ],
- ],
];