From fb6b4da93d1ed7e57a4f9084e935e73253de0c96 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 4 Jul 2016 10:15:29 -0500 Subject: [PATCH] Fixed emails not being sent by removing duplicate mail header Removing the MIME header (which was also being inserted automatically by the mailing system) means emails are now being sent. --- inc/mail.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/inc/mail.php b/inc/mail.php index 4f0459c..a40daa9 100755 --- a/inc/mail.php +++ b/inc/mail.php @@ -14,14 +14,8 @@ class visitors_edits_EMAIL{ "notify_admin"=>null ]); - $headers= "MIME-Version: 1.0\r\n"; - $headers .= "Content-Type: text/html; charset=UTF-8\r\n"; - - wp_mail($destination, $this->subject, $this->body,$headers); - /* - subject : $this->subject - body : $this->body - */ + $headers = "Content-Type: text/html; charset=UTF-8\r\n"; + wp_mail($destination, $this->subject, $this->body, $headers); } private function loadTemplate($template){ ob_start();