From 3d39e6e59489cf5013d7515a6e9deb2175d433ee Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 2 Jun 2012 18:23:54 -0700 Subject: [PATCH] bug #439 - remove web port number from notification email "from" address --- include/enotify.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/enotify.php b/include/enotify.php index f7ef74fac5..fe0f128b60 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 = "";