commit | 243f5cc45f23436a1ed3f2fc1ac5f0388dc3d4f5 | [log] [tgz] |
---|---|---|
author | derek <devnull@localhost> | Tue Oct 03 00:25:03 2006 +0000 |
committer | derek <devnull@localhost> | Tue Oct 03 00:25:03 2006 +0000 |
tree | b7cd347ba5cfe3b21ca7298e60d48387ad414538 | |
parent | e95cd263f6991d99e0103fe858f034b76be6d672 [diff] [blame] |
diff --git a/system/libraries/Email.php b/system/libraries/Email.php index 55edd62..99de174 100644 --- a/system/libraries/Email.php +++ b/system/libraries/Email.php
@@ -1548,7 +1548,7 @@ */ 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()