mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 14:15:18 +00:00
use the same host macro for sender address as for reply_to address
This commit is contained in:
parent
066ab8c1fc
commit
a7bf4366ce
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ class Enotify {
|
|||
$sender_name = $product;
|
||||
$hostname = \App::get_hostname();
|
||||
if(strpos($hostname,':'))
|
||||
$hostname = substr($hostname,0,strpos($hostname,':'));
|
||||
$hostname = substr($hostname,0,strpos($hostname,':'));
|
||||
|
||||
// Do not translate 'noreply' as it must be a legal 7-bit email address
|
||||
|
||||
|
@ -77,7 +77,7 @@ class Enotify {
|
|||
|
||||
$sender_email = get_config('system','from_email');
|
||||
if(! $sender_email)
|
||||
$sender_email = 'Administrator' . '@' . \App::get_hostname();
|
||||
$sender_email = 'Administrator' . '@' . $hostname;
|
||||
|
||||
$sender_name = get_config('system','from_email_name');
|
||||
if(! $sender_name)
|
||||
|
|
Loading…
Reference in a new issue