From 389e3714a18e7a14d391d6a54bd076094b19c539 Mon Sep 17 00:00:00 2001 From: robin Date: Thu, 20 Sep 2007 11:24:41 +0000 Subject: Make smtp HELO/EHLO hostname configurable (closes #1484067) git-svn-id: https://svn.roundcube.net/trunk@804 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_smtp.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include') diff --git a/roundcubemail/program/include/rcube_smtp.inc b/roundcubemail/program/include/rcube_smtp.inc index 7b839873e..f56246bbd 100644 --- a/roundcubemail/program/include/rcube_smtp.inc +++ b/roundcubemail/program/include/rcube_smtp.inc @@ -76,7 +76,7 @@ function smtp_mail($from, $recipients, &$headers, &$body, &$response) // create Net_SMTP object and connect to server if (!is_object($smtp_conn)) { - $helo_host = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : 'localhost'; + $helo_host = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : (!empty($CONFIG['smtp_helo_host']) ? $CONFIG['smtp_helo_host'] : 'localhost'); $SMTP_CONN = new Net_SMTP($smtp_host, $smtp_port, $helo_host); // set debugging -- cgit v1.2.3