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 PHP itself should be fine, but it is also included here. PHP Mail Code Many thanks, Nick Your You need to turn on phpInfo () can be found here:
$ 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); phpinfo < / Code> shows that mail.add_x_header is closed 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
Post a Comment