diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index 9936858ef7..1360f9849d 100644
--- a/src/wp-includes/pluggable.php
+++ b/src/wp-includes/pluggable.php
@@ -456,7 +456,11 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
 		// Set custom headers
 		if ( ! empty( $headers ) ) {
 			foreach ( (array) $headers as $name => $content ) {
-				$phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );
+				// Only add a custom header if the header is not automagically added from
+				// /wp-includes/class-phpmailer.php
+				if ( 'MIME-Type' !== $name && 'X-Mailer' !== $name && empty( get_header( $name ) ) ) {
+					$phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );	
+				}
 			}
 
 			if ( false !== stripos( $content_type, 'multipart' ) && ! empty( $boundary ) ) {