Can I just build html email as usually we build html pages?
I want to set email body as a string of all html codes.
Email body offcourse will be complex, so I need to use a lot of CSS to build one page html email.
What should I do?
Where to store css codes?
Can I just include external .css file from my server?
Even though it sounds totally backwards and not what I’d recommend for web pages, the best way to use css in emails is all inline in
styleattributes. The reason is that a lot of email applications and particularly web mail like gmail, yahoo, hotmail, etc. will not respect your css class declarations and will often strip out all of your css unless it is inline. A lot of the time the entire<head>gets removed and very often the<body>tag is removed if you include that in your email.If you are just getting started creating HTML emails I would strongly suggest using Litmus or doing manually testing on a variety of email clients. Litmus or another similar service will save you a lot of time though.