diff --git a/lib/Alchemy/Phrasea/Application.php b/lib/Alchemy/Phrasea/Application.php index 4906435e4f..d0c8855011 100644 --- a/lib/Alchemy/Phrasea/Application.php +++ b/lib/Alchemy/Phrasea/Application.php @@ -706,6 +706,10 @@ private function setupSwiftMailer() // tls or ssl $transport->setEncryption($options['encryption']); + if ($options['encryption'] == 'tls') { + $transport->setStreamOptions(['ssl' =>['tlsv1.2' => true]]); + } + if ($app['conf']->get(['registry', 'email', 'smtp-auth-enabled'])) { $transport->setUsername($options['username']); $transport->setPassword($options['password']);