# This patch can be applied using context Tools: Patch action on respective folder.
# It uses platform neutral UTF-8 encoding and \n newlines.
# Above lines and this line are ignored by the patching process.
Index: pluggable.php
--- pluggable.php ベース(BASE)
+++ pluggable.php ローカルでの変更(LOCALがベース)
@@ -323,7 +323,8 @@
 
 	if ( !isset( $from_email ) ) {
 		// Get the site domain and get rid of www.
-		$sitename = strtolower( $_SERVER['SERVER_NAME'] );
+		$server_name = parse_url( get_home_url( get_current_blog_id() ), PHP_URL_HOST );
+		$sitename = strtolower( $server_name );
 		if ( substr( $sitename, 0, 4 ) == 'www.' ) {
 			$sitename = substr( $sitename, 4 );
 		}
