summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/smtp.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/etc/inc/smtp.inc')
-rw-r--r--src/etc/inc/smtp.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/etc/inc/smtp.inc b/src/etc/inc/smtp.inc
index de5522c..48872d8 100644
--- a/src/etc/inc/smtp.inc
+++ b/src/etc/inc/smtp.inc
@@ -1243,7 +1243,7 @@ class smtp_class
if($this->debug)
$this->OutputDebug("Connected to SMTP server \"".$domain."\".");
if(!strcmp($localhost=$this->localhost,"")
- && !strcmp($localhost=getenv("SERVER_NAME"),"")
+ && !strcmp($localhost=getenv("HTTP_HOST"),"")
&& !strcmp($localhost=getenv("HOST"),""))
$localhost="localhost";
$success=0;
@@ -1889,4 +1889,4 @@ class smtp_class
*/
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud