diff options
author | zotlabs <mike@macgirvin.com> | 2017-03-21 21:00:48 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-03-21 21:00:48 -0700 |
commit | a7bf4366cee5dcdabe3eb6dbcb144727d2158775 (patch) | |
tree | 293c46b739c823e2ae793f3e7a324a21c994521c /Zotlabs/Lib/Enotify.php | |
parent | 066ab8c1fc6ce23fc0c25291940020cacd88be91 (diff) | |
download | volse-hubzilla-a7bf4366cee5dcdabe3eb6dbcb144727d2158775.tar.gz volse-hubzilla-a7bf4366cee5dcdabe3eb6dbcb144727d2158775.tar.bz2 volse-hubzilla-a7bf4366cee5dcdabe3eb6dbcb144727d2158775.zip |
use the same host macro for sender address as for reply_to address
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r-- | Zotlabs/Lib/Enotify.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php index 257687567..5db5fb42d 100644 --- a/Zotlabs/Lib/Enotify.php +++ b/Zotlabs/Lib/Enotify.php @@ -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) |