This commit is contained in:
ldestailleur 2025-03-26 03:05:51 +01:00
parent 635ce3de85
commit 965b73ffcd

View file

@ -527,7 +527,7 @@ class SMTPs
$hosth = $host; // so for example 'localhost' or 'smtp-relay.gmail.com'
if (getDolGlobalString('MAIL_SMTP_USE_FROM_FOR_HELO')) {
if (getDolGlobalString('MAIL_SMTP_USE_FROM_FOR_HELO')) { // Note that default value is forced to MAIL_SMTP_USE_FROM_FOR_HELO=2 if not set
if (!is_numeric(getDolGlobalString('MAIL_SMTP_USE_FROM_FOR_HELO'))) {
// If value of MAIL_SMTP_USE_FROM_FOR_HELO is a string, we use it as domain name
$hosth = getDolGlobalString('MAIL_SMTP_USE_FROM_FOR_HELO');