mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix: respect SMTP encryption setting for email notifications
The EsmtpTransport constructor expects bool|null for the tls parameter: - null: auto-detect (try STARTTLS if supported) - true: force implicit TLS (port 465) - false: no encryption Previously 'none' mapped to null which still attempted STARTTLS, and 'tls' mapped to the string 'tls' instead of boolean true. Fixes #6442
This commit is contained in:
parent
78aea9a7ec
commit
212d30cea4
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ class EmailChannel
|
|||
} elseif ($isSmtpEnabled) {
|
||||
$encryption = match (strtolower($settings->smtp_encryption)) {
|
||||
'starttls' => null,
|
||||
'tls' => 'tls',
|
||||
'none' => null,
|
||||
'tls' => true,
|
||||
'none' => false,
|
||||
default => null,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue