]> git.mxchange.org Git - friendica.git/commitdiff
bug #439 - remove web port number from notification email "from" address
authorfriendica <info@friendica.com>
Sun, 3 Jun 2012 01:23:54 +0000 (18:23 -0700)
committerfriendica <info@friendica.com>
Sun, 3 Jun 2012 01:23:54 +0000 (18:23 -0700)
include/enotify.php

index f7ef74fac59469e706084fabfdac59bcfbb99a83..fe0f128b600e16bf4fd13c61a9e6a7a5beb8f5ab 100644 (file)
@@ -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 = "";