if a sender_email for the system is set, use this, else use noreply@...

This commit is contained in:
Tobias Diekershoff 2016-09-06 13:37:26 +02:00
parent 3506b62ff6
commit b59f2fab49
1 changed files with 4 additions and 1 deletions

View 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'];