Skip to content

Commit

Permalink
swift tls 1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Sep 25, 2023
1 parent b839efd commit 8f66d7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Alchemy/Phrasea/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 8f66d7e

Please sign in to comment.