From 977a295eb1e97e0c230063da40b8296fca778814 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 16 Dec 2005 15:05:41 -0500 Subject: [PATCH] Usage of virtusertable; mail_domain for new users; Chinese and Turkish localization --- program/include/rcube_smtp.inc | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/program/include/rcube_smtp.inc b/program/include/rcube_smtp.inc index e4aea09..d337632 100644 --- a/program/include/rcube_smtp.inc +++ b/program/include/rcube_smtp.inc @@ -72,7 +72,8 @@ // create Net_SMTP object and connect to server if (!is_object($smtp_conn)) { - $SMTP_CONN = new Net_SMTP($smtp_host, $smtp_port, 'localhost'); + $helo_host = !empty($_SERVER['server_name']) ? $_SERVER['server_name'] : 'localhost'; + $SMTP_CONN = new Net_SMTP($smtp_host, $smtp_port, $helo_host); // set debugging if ($CONFIG['debug_level'] & 8) -- Gitblit v1.9.1