4 ms·
I personally don't use HTML in emails. This is mostly fueled by a combination of my preference to receive text-only emails and my desire to follow the "Golden
by yellowapple 11y ago
I personally don't use HTML in emails. This is mostly fueled by a combination of my preference to receive text-only emails and my desire to follow the "Golden Rule".
That said, I can see why some folks would want HTML in emails, so it's sometimes worth making exceptions. To address your specific concerns:
> Inconsistency across email clients.
That's going to be a problem no matter what. My recommendation is to keep your HTML simple; the less complicated, the less of a chance for some MUA or other to screw it up.
> Is there a tool to inline CSS styles (since stylesheets are not allowed in gmail)?
Is there something in particular you're trying to achieve?
My approach would be to generate inline-styled HTML with templating (I use Ruby and Elixir mainly at the moment, so my approach would involve ERB or EEx (respectively); I don't know what equivalent(s) C# has). Like the above recommendation, though, keep your styling light; again, the fewer complexities, the fewer chances for the MUA to screw things up.
> Displaying bar graphs. I thinkg my options are either doing this with tables/divs or to generate an image of the graph to avoid inconsistent formatting.
Inline images are almost certainly your best bet here for maximum compatibility.
> The email reports will also be web pages. How do I avoid UI duplication?
By turning the email "reports" into emails with links to the actual (web page) report.
Part of your problem is that you're trying to treat email and web pages as equivalent media, when this isn't the case. Email is very much optimized for simple text-based communication; you should play to that strength instead of trying to mangle it into a role it's really not meant for.
- ohitsdom 11y agoGood info, thanks. > By turning the email "reports" into emails with links to the actual (web page) report. The type of users I'm targeting here would rather have the info delivered to the inbox then follow a link. If you're familiar with Mint, think something like their end-of-week financial summary.