diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-12-16 20:05:41 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-12-16 20:05:41 +0000 |
| commit | e786e636683429a4c57dbea03b4e35007a593371 (patch) | |
| tree | fac9f9cb3920f01cad573082e09b8d394a62a7aa /roundcubemail/program/include/rcube_smtp.inc | |
| parent | 8fbd3285af7ef4e5bd19452ccc38ac1178e85af3 (diff) | |
Usage of virtusertable; mail_domain for new users; Chinese and Turkish localization
git-svn-id: https://svn.roundcube.net/trunk@92 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_smtp.inc')
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.inc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.inc b/roundcubemail/program/include/rcube_smtp.inc index e4aea09d2..d3376328f 100644 --- a/roundcubemail/program/include/rcube_smtp.inc +++ b/roundcubemail/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) |
