aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-03-21 21:00:48 -0700
committerMario Vavti <mario@mariovavti.com>2017-03-29 14:09:58 +0200
commite49c59959b328d28b05b484bd7dbe49198fc5710 (patch)
treee8e8bc2ffccaaab93cbab8cd32ced187489314ea
parentb03cd330e5fe4ede362d77aa2269a3d0dccde62d (diff)
downloadvolse-hubzilla-e49c59959b328d28b05b484bd7dbe49198fc5710.tar.gz
volse-hubzilla-e49c59959b328d28b05b484bd7dbe49198fc5710.tar.bz2
volse-hubzilla-e49c59959b328d28b05b484bd7dbe49198fc5710.zip
use the same host macro for sender address as for reply_to address
-rw-r--r--Zotlabs/Lib/Enotify.php4
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)