I have this simple generic html email that i want to forward out using the mail() function that comes with php.
here's the code :<?php
/ recipients /
$recipient .= "kristoff@phatness.net";
/ subject /
$subject = "PLEASE WORK!";
/ message /
$message .= "<body>The following email includes RICH HTML! <br>";
$message .= "<font size=\"4\">Font Size 4</font></body>";
/ additional header pieces for errors, From cc's, bcc's, etc /
$headers .= "From: kristoff <kristoff@phatness.net>\n";
$headers .= "X-Sender: <kristoff@phatness.net>\n";
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <kristoff@phatness.net>\n"; // Return path for errors
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n"; // Mime type
/ and now mail it /
mail($recipient, $subject, $message, $headers);
?>
It sends the email fine, but does not interpret it as html at all ... its just displays the code in the email instead.
What am i doin wrong?