Skip to:
Content

BuddyPress.org

Ticket #7009: 0001-Mail-host-fix.patch

File 0001-Mail-host-fix.patch, 927 bytes (added by singhleo, 9 years ago)

Patch

  • src/bp-core/classes/class-bp-phpmailer.php

    From afc74df2f6faf315469994bd5dff3e9c3109418b Mon Sep 17 00:00:00 2001
    Message-Id: <afc74df2f6faf315469994bd5dff3e9c3109418b.1460496850.git.inventive.mind@yahoo.com>
    From: Ayush <inventive.mind@yahoo.com>
    Date: Wed, 13 Apr 2016 03:04:03 +0530
    Subject: [PATCH] Mail host fix
    
    ---
     src/bp-core/classes/class-bp-phpmailer.php | 3 ++-
     1 file changed, 2 insertions(+), 1 deletion(-)
    
    diff --git a/src/bp-core/classes/class-bp-phpmailer.php b/src/bp-core/classes/class-bp-phpmailer.php
    index 2042103..ab287b1 100644
    a b class BP_PHPMailer implements BP_Email_Delivery { 
    151151                        return get_current_site()->domain;  // From fix_phpmailer_messageid()
    152152                }
    153153
    154                 return preg_replace( '#^https?://#i', '', bp_get_option( 'home' ) );
     154                $home = bp_get_option( 'home' );
     155                return parse_url($home,PHP_URL_HOST);
    155156        }
    156157}