i am trying to send email in html format using web form .for this purpose i added tinymce in my web form but when i send email i received email in broken html please help. my code is
[code]<?php
$send = $_POST[‘send’];
if($send){
$email = $_POST[‘email’];
$emailfile = file_get_contents("mailing.txt");
$emaillist = explode("\n", $emailfile);
foreach ($emaillist as $value)
{
mail($value, $_POST['subject'], $_POST['message'], "From: $email");
}
echo "<b>Email sent!</b><br />";
}
?>
Subject: | |
From: | |
Message: | |