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

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