diff options
author | derek <devnull@localhost> | 2006-10-03 02:25:03 +0200 |
---|---|---|
committer | derek <devnull@localhost> | 2006-10-03 02:25:03 +0200 |
commit | 243f5cc45f23436a1ed3f2fc1ac5f0388dc3d4f5 (patch) | |
tree | b7cd347ba5cfe3b21ca7298e60d48387ad414538 /system/libraries/Email.php | |
parent | e95cd263f6991d99e0103fe858f034b76be6d672 (diff) |
Diffstat (limited to 'system/libraries/Email.php')
-rw-r--r-- | system/libraries/Email.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 55edd6216..99de17414 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php @@ -1548,7 +1548,7 @@ class CI_Email { */ function _get_hostname() { - return ($this->smtp_host != '') ? $this->smtp_host : $this->_get_ip(); + return (isset($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : 'localhost.localdomain'; } // END _get_hostname() |