| | |
How to declare the mime type for a html-email?
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Feb 2009
Posts: 2
Reputation:
Solved Threads: 0
Hello,
I am trying to create a html-email. I've read that in order to render the html content corectly I have to set the content-type of the mail to text/html but I don't know how. Ho to do all this when writing from a regular email client. I have to declare it in the mail body? Or in the mail header (if so, how do I do it?)? I tried with:
placed in the body of the mail (with the rest of the html code) but it doesn't work. It displays as plain text (displaying all the html tags).
I am trying to create a html-email. I've read that in order to render the html content corectly I have to set the content-type of the mail to text/html but I don't know how. Ho to do all this when writing from a regular email client. I have to declare it in the mail body? Or in the mail header (if so, how do I do it?)? I tried with:
HTML and CSS Syntax (Toggle Plain Text)
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
placed in the body of the mail (with the rest of the html code) but it doesn't work. It displays as plain text (displaying all the html tags).
![]() |
Similar Threads
- PHP HTML Email with CSS styles (PHP)
- Need Help with HTML Email. (IT Professionals' Lounge)
- Extract MIME type from binary file data (C#)
- Sending HTML email via PHP mail function (PHP)
- How to render a formatted output using HTML? (HTML and CSS)
- using html in my welcome email (HTML and CSS)
Other Threads in the HTML and CSS Forum
- Previous Thread: Shadow / background
- Next Thread: iframe background color
| Thread Tools | Search this Thread |






