From: Tobias Diekershoff Date: Tue, 6 Sep 2016 11:37:26 +0000 (+0200) Subject: if a sender_email for the system is set, use this, else use noreply@... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b59f2fab4958fed93a3e875058b0e0400ef64035;p=friendica-addons.git if a sender_email for the system is set, use this, else use noreply@... --- diff --git a/notifyall/notifyall.php b/notifyall/notifyall.php index e33c9181..cfd2c928 100644 --- a/notifyall/notifyall.php +++ b/notifyall/notifyall.php @@ -43,7 +43,10 @@ function notifyall_post(&$a) { else $sender_name = sprintf(t('%1$s, %2$s Administrator'), $a->config['admin_name'], $sitename); - $sender_email = 'sys@' . $a->get_hostname(); + if (! x($a->config['sender_email'])) + $sender_email = 'noreply@' . $a->get_hostname(); + else + $sender_email = $a->config['sender_email']; $subject = $_REQUEST['subject'];