We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5fee43 commit a5b4f9bCopy full SHA for a5b4f9b
1 file changed
system/Email/Email.php
@@ -1870,9 +1870,13 @@ protected function SMTPConnect()
1870
1871
$ssl = '';
1872
1873
+ // Connection to port 465 should use implicit TLS (without STARTTLS)
1874
+ // as per RFC 8314.
1875
if ($this->SMTPPort === 465) {
1876
$ssl = 'tls://';
- } elseif ($this->SMTPCrypto === 'ssl') {
1877
+ }
1878
+ // But if $SMTPCrypto is set to `ssl`, SSL can be used.
1879
+ if ($this->SMTPCrypto === 'ssl') {
1880
$ssl = 'ssl://';
1881
}
1882
0 commit comments