From: Hypolite Petovan Date: Sat, 7 Apr 2018 01:47:42 +0000 (-0400) Subject: Use App->getSenderEmailAddress in include/enotify X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=32ca95a1b08ee0086a2cadac32b382c9c1a541bc;p=friendica.git Use App->getSenderEmailAddress in include/enotify --- 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'],