summaryrefslogtreecommitdiff
path: root/program/include/rcube_smtp.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2005-12-16 20:05:41 +0000
committerthomascube <thomas@roundcube.net>2005-12-16 20:05:41 +0000
commit977a295eb1e97e0c230063da40b8296fca778814 (patch)
tree69e7546c34103a016b41dceccd08816d1296e4fc /program/include/rcube_smtp.inc
parent749b07c78a29b03c63812c3ec3630b16db4baa8f (diff)
Usage of virtusertable; mail_domain for new users; Chinese and Turkish localization
Diffstat (limited to 'program/include/rcube_smtp.inc')
-rw-r--r--program/include/rcube_smtp.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/program/include/rcube_smtp.inc b/program/include/rcube_smtp.inc
index e4aea09d2..d3376328f 100644
--- a/program/include/rcube_smtp.inc
+++ b/program/include/rcube_smtp.inc
@@ -72,7 +72,8 @@ function smtp_mail($from, $recipients, $headers, &$body)
// 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)