summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorderek <devnull@localhost>2006-10-03 02:25:03 +0200
committerderek <devnull@localhost>2006-10-03 02:25:03 +0200
commit243f5cc45f23436a1ed3f2fc1ac5f0388dc3d4f5 (patch)
treeb7cd347ba5cfe3b21ca7298e60d48387ad414538 /system/libraries
parente95cd263f6991d99e0103fe858f034b76be6d672 (diff)
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Email.php2
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()