From 290c2448e52baa9d5c328bf2b076766573e436fb Mon Sep 17 00:00:00 2001
Message-Id: <290c2448e52baa9d5c328bf2b076766573e436fb.1460507400.git.inventive.mind@yahoo.com>
From: Ayush <inventive.mind@yahoo.com>
Date: Wed, 13 Apr 2016 05:59:47 +0530
Subject: [PATCH] Hostname remove

Removing hostname as after 2.5.0 we have added phpmailer_init hook and
wordpress is adding hostname using that hook
---
 src/bp-core/classes/class-bp-phpmailer.php | 21 ---------------------
 1 file changed, 21 deletions(-)

diff --git a/src/bp-core/classes/class-bp-phpmailer.php b/src/bp-core/classes/class-bp-phpmailer.php
index 2042103..70a4ebc 100644
--- a/src/bp-core/classes/class-bp-phpmailer.php
+++ b/src/bp-core/classes/class-bp-phpmailer.php
@@ -54,8 +54,6 @@ class BP_PHPMailer implements BP_Email_Delivery {
 
 		$phpmailer->IsMail();
 		$phpmailer->CharSet  = bp_get_option( 'blog_charset' );
-		$phpmailer->Hostname = self::get_hostname();
-
 
 		/*
 		 * Content.
@@ -134,23 +132,4 @@ class BP_PHPMailer implements BP_Email_Delivery {
 		}
 	}
 
-
-	/*
-	 * Utility/helper functions.
-	 */
-
-	/**
-	 * Get an appropriate hostname for the email. Varies depending on site configuration.
-	 *
-	 * @since 2.5.0
-	 *
-	 * @return string
-	 */
-	public static function get_hostname() {
-		if ( is_multisite() ) {
-			return get_current_site()->domain;  // From fix_phpmailer_messageid()
-		}
-
-		return preg_replace( '#^https?://#i', '', bp_get_option( 'home' ) );
-	}
 }
-- 
2.5.0

