HTML mail() Sending as Plain Text

[code lang=”php”] $to = “[email protected]”; $subject = “SUBJECT”; $message = “MESSAGE“; $headers = ‘MIME-Version: 1.0’ . “\r\n”; $headers .= ‘Content-type: text/html; charset=iso-8859-1’ . “\r\n”; $headers .= ‘From: Mailer ‘ . “\r\n”; mail($to, $subject, $message, $headers); [/code] The above code does not always send emails in HTML as it should, it Read more…

By Andrew Odendaal, ago