diff --git a/Sources/MailAgent/APIs/SMTP.php b/Sources/MailAgent/APIs/SMTP.php index 0b8488918a..64077cd1a8 100644 --- a/Sources/MailAgent/APIs/SMTP.php +++ b/Sources/MailAgent/APIs/SMTP.php @@ -112,7 +112,7 @@ public function connect(): bool return false; } - $helo = getHostname(); + $helo = $this->getHostname(); if (Config::$modSettings['smtp_username'] != '' && Config::$modSettings['smtp_password'] != '') { // EHLO could be understood to mean encrypted hello...