From: friendica Date: Sun, 3 Jun 2012 01:23:54 +0000 (-0700) Subject: bug #439 - remove web port number from notification email "from" address X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d39e6e59489cf5013d7515a6e9deb2175d433ee;p=friendica.git bug #439 - remove web port number from notification email "from" address --- 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 = "";