X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/bae0e80cee6acf111c7b69568ced4a8b5ce0c72d..refs/pull/4467/head:/app/Config/mail.php diff --git a/app/Config/mail.php b/app/Config/mail.php index e8ec9cc15..6400211e8 100644 --- a/app/Config/mail.php +++ b/app/Config/mail.php @@ -31,7 +31,7 @@ return [ 'mailers' => [ 'smtp' => [ 'transport' => 'smtp', - 'scheme' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl') ? 'smtps' : null, + 'scheme' => null, 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 'port' => env('MAIL_PORT', 587), 'username' => env('MAIL_USERNAME'), @@ -39,6 +39,7 @@ return [ 'verify_peer' => env('MAIL_VERIFY_SSL', true), 'timeout' => null, 'local_domain' => env('MAIL_EHLO_DOMAIN'), + 'tls_required' => ($mailEncryption === 'tls' || $mailEncryption === 'ssl'), ], 'sendmail' => [