From d760b6618dd2bf1b64452b5ff0c68d8a9f1b0d32 Mon Sep 17 00:00:00 2001 From: oscim Date: Mon, 30 Mar 2020 18:27:18 +0200 Subject: [PATCH] Fix use correctly hosts in connection cf https://github.com/Dolibarr/dolibarr/issues/9426 --- htdocs/core/class/smtps.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/smtps.class.php b/htdocs/core/class/smtps.class.php index 39c7d3ba778..2031d23eece 100644 --- a/htdocs/core/class/smtps.class.php +++ b/htdocs/core/class/smtps.class.php @@ -490,9 +490,9 @@ class SMTPs } // Most server servers expect a 2nd pass of EHLO after TLS is established to get another time // the answer with list of supported AUTH methods. They may differs between non STARTTLS and with STARTTLS. - if (!$_retVal = $this->socket_send_str('EHLO '.$host, '250')) + if (!$_retVal = $this->socket_send_str('EHLO '.$hosth, '250')) { - $this->_setErr(126, '"'.$host.'" does not support authenticated connections.'); + $this->_setErr(126, '"'.$hosth.'" does not support authenticated connections.'); return $_retVal; } }