From b59f2fab4958fed93a3e875058b0e0400ef64035 Mon Sep 17 00:00:00 2001 From: Tobias Diekershoff Date: Tue, 6 Sep 2016 13:37:26 +0200 Subject: [PATCH] if a sender_email for the system is set, use this, else use noreply@... --- notifyall/notifyall.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'];