diff options
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Mail.php b/core/Mail.php index 3b74504b14..93ce405fda 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -31,7 +31,8 @@ class Piwik_Mail extends Zend_Mail public function setFrom($email, $name = null) { - $piwikHost = Piwik_Url::getCurrentHost('piwik.org'); + $hostname = Zend_Registry::get('config')->mail->defaultHostnameIfEmpty; + $piwikHost = Piwik_Url::getCurrentHost($hostname); $email = str_replace('{DOMAIN}', $piwikHost, $email); parent::setFrom($email, $name); } |