I am sending dynamically creating html table in email body but in the email I receive the html code instead of displaying a table. Please help me. Here is my code.
First of all, I would suggest using the Pear Mail extension (it's supplied with the basic build of php), because using the mail() function imo, is not as good, using th pear mail class, you can also set the mime type easily.
Mail_mime class
Please keep in mind that alot of mail services have limited (if any) support for HTML messages, I don't know the support level for tables, however.