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.
master
Mahmoud Al-Qudsi 2016-07-04 10:15:29 -05:00
부모 b765c8a93d
커밋 fb6b4da93d
1개의 변경된 파일2개의 추가작업 그리고 8개의 파일을 삭제

@ -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();