Hi
I have problem in sending mails with html formats. If i use tags like font,color,<br> it's ok. But when i construct my mail in a html format it's not considering.That is when i check the mail all the html tags which i have used are appearing as it is.
Could any one tell me what i need to do for my mails to accept the html formats. Can anyone help me on this.I am using apache_1.3.27,PHP 4.1 and RedHat linux 8.
Thanks
svan
Try setting up the mime version and content type to send HTML email:
mail("$to", "$subject", "$mailbody", "From: $name\n" . "MIME-Version: 1.0\n" . "Content-type: text/html; charset=iso-8859-1");
An article on this subject can be found at http://www.phpbuilder.com/columns/kartic20000807.php3
please post the "mail" code you are using along with any headers you are using
and what platy are you on win or nix
I tried by adding these headers and is working ok.
$headers = "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\n";
mail($to, $subject, $message, $headers);
Thanks all for your help.