Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How and where to place - css, html and images in email to make it a HTML email?

I have seen many advertising emails in my inbox and I am curious to know how does the email body display the HTML.

share|improve this question
add comment

closed as off topic by John Conde Oct 20 '12 at 14:07

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

Take a look at

  1. The article HTML email on wikipedia. It's a nice summary.
  2. Your mail software will have the option to view your mail in raw format so you can a have a look.

If you are even more curious (and have minimal developer skills) take a look at libraries like PHPMailer to see how HTML mails can be built.

share|improve this answer
add comment

Images you must hot link to, CSS will be inline styled. Few styles are rendered by email clients such as gmail yahoo aol outlook etc. Make sure to use tables and not pure CSS columns etc.

I would look at MailChimps knowledge base which have great articles on this http://kb.mailchimp.com/article/how-to-code-html-emails

share|improve this answer
    
"Images you must hot link to": This is the best solution for various reasons (tracking, saving costs if you have to pay, changing it later, ...) - but it is a recommendation, not absolute. You can also embedd/attach them. There are use cases where this approach is better. –  initall Oct 20 '12 at 12:50
    
I rarely see embedded images almost everyone hot links and stores the images on their own server IMHO –  Anagio Oct 20 '12 at 13:03
    
You gave the impression, even without further details that "images must be hot linked to". As I commented, this is not required by a standard. Most of the time it's the better solution, though. –  initall Oct 21 '12 at 11:16
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.