diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index 9936858ef7..9b45e12dad 100644
--- a/src/wp-includes/pluggable.php
+++ b/src/wp-includes/pluggable.php
@@ -456,8 +456,10 @@ if ( ! function_exists( 'wp_mail' ) ) :
 		// Set custom headers
 		if ( ! empty( $headers ) ) {
 			foreach ( (array) $headers as $name => $content ) {
-				$phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
-			}
+        		// Only add custom header if not one that will be added automatically by wp-includes/class-phpmailer.php
+            	if (('MIME-Version' !== $name) && ('X-Mailer' !== $name)) 
+            		$phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
+        	}