if a sender_email for the system is set, use this, else use noreply@...
This commit is contained in:
parent
3506b62ff6
commit
b59f2fab49
|
@ -43,7 +43,10 @@ function notifyall_post(&$a) {
|
||||||
else
|
else
|
||||||
$sender_name = sprintf(t('%1$s, %2$s Administrator'), $a->config['admin_name'], $sitename);
|
$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'];
|
$subject = $_REQUEST['subject'];
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user