email - PHP mail() Not displaying HTML -


We have recently upgraded to a Plesk Parallel Linux server and it appears that ignoring PHP setting header is! Emails are getting well, but the HTML tags displayed

phpInfo () can be found here:

PHP itself should be fine, but it is also included here.

PHP Mail Code

  $ email = "example@example.com"; $ Message = "& lt; h1 style = 'font-family: helvetica, aerial; font-size: 17px' & gt; You have a password reset request in your account & lt; / h1 & gt;"; $ Headers = "to: noreply@pressgofer.com \ r \ n"; $ Headers = "Reply: noreply@pressgofer.com \ r \ n"; $ Headers = "Mime-version: 1.0 \ r \ n"; $ Headers = "Content-type: text / html; charset = ISO-885 9-1 \ r \ n"; Mail ($ email, "reset password information", $ message, $ headers);   

Many thanks, Nick

Your phpinfo < / Code> shows that mail.add_x_header is closed

You need to turn on x-mail to enable the header Mail.ed_x_header to your php.ini

   gt; body & gt;"; $ Message = "& Lt; h1> This is a test & lt; / h1 & gt;"; $ Message = "& Lt; / body> & lt; / html & gt;"; If (mail ($ $, $ theme, $ message, $ header)) {resonant "email has been sent!"; } Else {echo "email has failed!"; }? & Gt;    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -