aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-02 18:23:54 -0700
committerfriendica <info@friendica.com>2012-06-02 18:23:54 -0700
commit3d39e6e59489cf5013d7515a6e9deb2175d433ee (patch)
treeb72bc909122e16bd3401ad616c7a90d650987cd8
parent4978ee12d10a9a18f9fc26795e09515ef6db7949 (diff)
downloadvolse-hubzilla-3d39e6e59489cf5013d7515a6e9deb2175d433ee.tar.gz
volse-hubzilla-3d39e6e59489cf5013d7515a6e9deb2175d433ee.tar.bz2
volse-hubzilla-3d39e6e59489cf5013d7515a6e9deb2175d433ee.zip
bug #439 - remove web port number from notification email "from" address
-rw-r--r--include/enotify.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/enotify.php b/include/enotify.php
index f7ef74fac..fe0f128b6 100644
--- a/include/enotify.php
+++ b/include/enotify.php
@@ -20,6 +20,9 @@ function notification($params) {
$sender_name = $product;
$hostname = $a->get_hostname();
+ if(strpos($hostname,':'))
+ $hostname = substr($hostname,0,strpos($hostname,':'));
+
$sender_email = t('noreply') . '@' . $hostname;
$additional_mail_header = "";