diff options
Diffstat (limited to 'core/Mail.php')
-rw-r--r-- | core/Mail.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Mail.php b/core/Mail.php index b44e01c341..22843b5a76 100644 --- a/core/Mail.php +++ b/core/Mail.php @@ -40,9 +40,11 @@ class Mail extends Zend_Mail /** @var Translator $translator */ $translator = StaticContainer::get('Piwik\Translation\Translator'); - if ($customLogo->isEnabled()) { + $fromEmailName = Config::getInstance()->General['noreply_email_name']; + + if (empty($fromEmailName) && $customLogo->isEnabled()) { $fromEmailName = $translator->translate('CoreHome_WebAnalyticsReports'); - } else { + } elseif (empty($fromEmailName)) { $fromEmailName = $translator->translate('ScheduledReports_PiwikReports'); } |