change notify param

This commit is contained in:
redmatrix 2016-09-29 17:54:11 -07:00
parent 4117ada2fd
commit 2728cdaf23
2 changed files with 7 additions and 2 deletions

View File

@ -70,6 +70,9 @@ class Enotify {
$hostname = substr($hostname,0,strpos($hostname,':'));
// Do not translate 'noreply' as it must be a legal 7-bit email address
$sender_email = get_config('system','reply_address');
if(! $sender_email)
$sender_email = 'noreply' . '@' . $hostname;
$additional_mail_header = "";

View File

@ -1939,6 +1939,8 @@ function format_and_send_email($sender,$xchan,$item) {
$hostname = App::get_hostname();
if(strpos($hostname,':'))
$hostname = substr($hostname,0,strpos($hostname,':'));
$sender_email = get_config('system','reply_address');
if(! $sender_email)
$sender_email = 'noreply' . '@' . $hostname;
// use the EmailNotification library to send the message