Fork me on GitHub

html email  Bottom

  • I saw this issue has been dealt with before. My problem is that eventhough I set the content type to be text/html, PN only sends text/plain.

    This is the code:

    $headers = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset="._CHARSET."\r\n";
    $headers .= "From: $sitename <noreply@abc.com>\nX-Mailer: PHP/" . phpversion();

    pnMail($posteremail, $EmailMsgSubject, $EmailMsgBody, $headers);

    If I set a break point, I see that $headers=

    MIME-Version: 1.0 Content-type: text/html; charset=ISO-8859-15 From: Your Site Name X-Mailer: PHP/4.3.3

    But when I get the email, I see that:

    MIME-Version: 1.0
    Content-Transfer-Encoding: 8bit
    Content-Type: text/plain; charset="iso-8859-1"

    Any ideas?

    Thanks in advance!
  • 0 users

This list is based on users active over the last 60 minutes.