notifyall in test mode #369

Merged
tobiasd merged 3 commits from 20160906-notify into master 2016-09-09 11:53:06 +02:00
Showing only changes of commit b59f2fab49 - Show all commits

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