Browse Source

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 3 years ago
parent
commit
35f6dd81a6
1 changed files with 2 additions and 8 deletions
  1. 2
    8
      inc/mail.php

+ 2
- 8
inc/mail.php View File

@@ -14,14 +14,8 @@ class visitors_edits_EMAIL{
14 14
 			"notify_admin"=>null
15 15
 		]);
16 16
 
17
-		$headers= "MIME-Version: 1.0\r\n";
18
-		$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
19
-
20
-		wp_mail($destination, $this->subject, $this->body,$headers);
21
-		/*
22
-		subject : $this->subject
23
-		body : $this->body
24
-		*/
17
+		$headers = "Content-Type: text/html; charset=UTF-8\r\n";
18
+		wp_mail($destination, $this->subject, $this->body, $headers);
25 19
 	}
26 20
 	private function loadTemplate($template){
27 21
 		ob_start();

Loading…
Cancel
Save