1
0
Fork 0

Issue 8495: Only use "noreply" when no sender mail is defined

This commit is contained in:
Michael 2020-04-04 20:26:09 +00:00
commit 860d4654c1
2 changed files with 3 additions and 2 deletions

View file

@ -64,7 +64,7 @@ class Emailer
$this->l10n = $defaultLang;
$this->siteEmailAddress = $this->config->get('config', 'sender_email');
if (empty($sysEmailAddress)) {
if (empty($this->siteEmailAddress)) {
$hostname = $this->baseUrl->getHostname();
if (strpos($hostname, ':')) {
$hostname = substr($hostname, 0, strpos($hostname, ':'));