]> git.mxchange.org Git - friendica-addons.git/blobdiff - notifyall/notifyall.php
if a sender_email for the system is set, use this, else use noreply@...
[friendica-addons.git] / 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'];