Skip to content

Commit 4751c1c

Browse files
committed
Internal: Fix mailer dsn migration when using tls
1 parent 73a309f commit 4751c1c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/CoreBundle/Migrations/Schema/V200/Version20250707212800.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private function migrateMailConf(string $oldMailConfPath): array
7070
if ('ssl' === $smtpSecure) {
7171
$mailerScheme = 'smtps';
7272
} elseif ('tls' === $smtpSecure) {
73-
$query = '?encryption=tls';
73+
$query = '?require_tls=true';
7474
}
7575
}
7676

src/CoreBundle/Migrations/Schema/V200/Version20250721200725.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function up(Schema $schema): void
3838
if ('ssl' === $smtpSecure) {
3939
$mailerScheme = 'smtps';
4040
} elseif ('tls' === $smtpSecure) {
41-
$query = '?encryption=tls';
41+
$query = '?require_tls=true';
4242
}
4343
}
4444

0 commit comments

Comments
 (0)