]> git.mxchange.org Git - friendica-addons.git/commitdiff
if a sender_email for the system is set, use this, else use noreply@...
authorTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Sep 2016 11:37:26 +0000 (13:37 +0200)
committerTobias Diekershoff <tobias.diekershoff@gmx.net>
Tue, 6 Sep 2016 11:37:26 +0000 (13:37 +0200)
notifyall/notifyall.php

index e33c9181221249dde0f8508bfee5b545e0d2fe0f..cfd2c928ee43bc567cf6d74dacaefe5982003d3c 100644 (file)
@@ -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'];