change notify param
This commit is contained in:
parent
4117ada2fd
commit
2728cdaf23
@ -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 = "";
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user