Fix Mailing Problem


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Edit: manager\includes\controls\class.phpmailer.php
  2.  
  3. Comment line 438:
  4.  
  5. // $rt = @mail($to, $this->EncodeHeader($this->Subject), $body, $header);
  6.  
  7. And add this:
  8.  
  9. {
  10. $headers = 'From: [email protected]' . "
  11. " .
  12. 'Reply-To: [email protected]' . "
  13. " .
  14. 'X-Mailer: PHP/' . phpversion() . "
  15. " .
  16. 'MIME-Version: 1.0' . "
  17. " .
  18. 'Content-Transfer-Encoding: 8bit' . "
  19. " .
  20. 'Content-Type: text/html; charset="UTF-8"';
  21. $rt = @mail($to, $this->EncodeHeader($this->Subject), $body, $headers);
  22. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.