FIX Use of office365 TLS with SMTPs method.
Conflicts: htdocs/core/class/smtps.class.php
This commit is contained in:
parent
8dee17446d
commit
324c8e9b54
@ -428,7 +428,7 @@ class SMTPs
|
|||||||
$host=preg_replace('@ssl://@i', '', $host); // Remove prefix
|
$host=preg_replace('@ssl://@i', '', $host); // Remove prefix
|
||||||
$host=preg_replace('@tls://@i', '', $host); // Remove prefix
|
$host=preg_replace('@tls://@i', '', $host); // Remove prefix
|
||||||
|
|
||||||
if ($usetls) $host='tls://'.$host;
|
if ($usetls && ! empty($conf->global->MAIN_SMTPS_ADD_TLS_TO_HOST_FOR_HELO)) $host = 'tls://'.$host;
|
||||||
|
|
||||||
$hosth = $host;
|
$hosth = $host;
|
||||||
|
|
||||||
@ -568,6 +568,8 @@ class SMTPs
|
|||||||
$host=preg_replace('@ssl://@i', '', $host); // Remove prefix
|
$host=preg_replace('@ssl://@i', '', $host); // Remove prefix
|
||||||
$host=preg_replace('@tls://@i', '', $host); // Remove prefix
|
$host=preg_replace('@tls://@i', '', $host); // Remove prefix
|
||||||
|
|
||||||
|
if ($usetls && ! empty($conf->global->MAIN_SMTPS_ADD_TLS_TO_HOST_FOR_HELO)) $host = 'tls://'.$host;
|
||||||
|
|
||||||
$hosth = $host;
|
$hosth = $host;
|
||||||
|
|
||||||
if (! empty($conf->global->MAIL_SMTP_USE_FROM_FOR_HELO))
|
if (! empty($conf->global->MAIL_SMTP_USE_FROM_FOR_HELO))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user