From f9b5b880a7c3767e542ecad61db5b51ead0ca3de Mon Sep 17 00:00:00 2001 From: Sandro Date: Wed, 23 Aug 2017 16:51:55 +0200 Subject: [PATCH] removed MIME-Version, it gets duplicated it seems that Wordpress phpmailer already inserts MIME-Version in mail headers. When "custom contact form" plugin sends the notification email, it adds the MIME-Version header and it gets duplicated. Servers may not accept the mail, resulting the error: 554 Transaction failed: Duplicate header 'MIME-Version'. --- classes/class-ccf-form-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/class-ccf-form-handler.php b/classes/class-ccf-form-handler.php index ced36de..092a61c 100644 --- a/classes/class-ccf-form-handler.php +++ b/classes/class-ccf-form-handler.php @@ -966,7 +966,7 @@ function process_submission() { } } - $headers = array( 'MIME-Version: 1.0', 'Content-type: text/html; charset=utf-8' ); + $headers = array('Content-type: text/html; charset=utf-8' ); $name = null; $email = null;