forked from friendica/friendica-addons
if a sender_email for the system is set, use this, else use noreply@...
This commit is contained in:
parent
3506b62ff6
commit
b59f2fab49
1 changed files with 4 additions and 1 deletions
|
@ -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'];
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue