Forum Moderators: open
Ok now that the unpleasentness is behind...
I can't get HTML to be rendered in any email clients. I'm running Hivemail and I'm also playing around with Yahoo.
Unfortunitly my only success has been using IE to compose an email in Yahoo... it rendered the code in Yahoo AND Hivemail. However putting the same code in either service results in the code being passed on as plain text.
Is there some holy grail of a secret I am unaware of that anti-html email folks are hiding from me?
If so, contact the service and have them sort this out for you.
Problem is that Hivemail my web based mail client is *NOT* recognizing the email sent from the contact form as text/html, just plain text.
AHHHHHHHHHHHHHHHHHHHHHHHHHHH!
I figured it out! I might as well have won the lotto kind of excited!
It was putting the header string AFTER the msg string...it seems to have been the placement of how the strings are printed? Anyway it works! Extreme frustration plus undieing ambition = raving (eventual) happiness!
<?
}
if (isset($_POST["submit"]) and ($checked) ) {
$msg = "Text Here 1 2 3\n";
$msg .= "<h2>Name</h2><h5>:</h5> ".$_POST["name"]."\n";
$msg .= "<h2>Phone</h2><h5>:</h5> ".$_POST["phone"]."\n";
$msg .= "<h2>E-Mail</h2><h5>:</h5> ".$_POST["email"]."\n";
$msg .= "<h2>Comments</h2><h5>:</h5> ".$_POST["comments"]."\n";
$msg .= "<h2>Reply By</h2><h5>:</h5> ".$_POST["preference"]."\n";
$msg .= "Street=".$_POST["street"]."\n";
$msg .= "City=".$_POST["city"]."\n";
$msg .= "Florida=".$_POST["state"]."\n";
$msg .= "Zip Code=".$_POST["zip"]."\n";
$msg .= "Referred By=".$_POST["referral"]."\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
mail("noone@nowhere.net","Business Inquiry", $msg, $headers);
echo "e-mail has been sent to: noone@nowhere.net<br>\n";
echo nl2br($msg) . "<br>\n";
?>
</body>
</html><?
}
?>