mail () display all html codes
i'm using the mail() to send mail to customer once they confirmed their orders.
my problem is, i wnat to display my mails with tables but when i received the email, it display out all the html codes.
how can i solve the problem?
Abhishek Reddy posted this at 09:36 — 23rd August 2002.
He has: 3,348 posts
Joined: Jul 2001
That's because your email is sent with the text/plain header.
Read this article on Sitepoint, by Kevin Yank, to get an insight into sending HTML mail.
http://www.webmasterbase.com/article/679
Basically, you set your mail() headers so that the mail is text/multipart or text/html, and then, if needed add mail boudaries and so forth...
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.