From 32ca95a1b08ee0086a2cadac32b382c9c1a541bc Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Fri, 6 Apr 2018 21:47:42 -0400 Subject: [PATCH] Use App->getSenderEmailAddress in include/enotify --- include/enotify.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/enotify.php b/include/enotify.php index d1c7dc1f41..68208ec5ac 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -45,10 +45,7 @@ function notification($params) $hostname = substr($hostname, 0, strpos($hostname, ':')); } - $sender_email = $a->config['sender_email']; - if (empty($sender_email)) { - $sender_email = L10n::t('noreply').'@'.$hostname; - } + $sender_email = $a->getSenderEmailAddress(); if ($params['type'] != SYSTEM_EMAIL) { $user = dba::selectFirst('user', ['nickname', 'page-flags'], -- 2.39.5