Solved: HTML email

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Ent

Josiah
Thread Starter
Retired Trusted Advisor
Joined
Apr 11, 2009
Messages
5,467
Does anyone know what should be done differently when composing HTML emails, in contrast to regular web pages? I'm particularly interested in any of the classic do-not-dos associated with web design which are standard or required practice for email writing.

Thus far I've determined that you should use Tables for layout and inline CSS for styling.
 
Joined
Apr 29, 2006
Messages
4,393
Josiah, can you give me a little better picture of your goal? As in...are we clicking a button to shoot an email of some content...filling out content and emailing or what?

I've done some things related, but I need the picture before I can offer any suggestions.
 
Joined
Apr 29, 2006
Messages
4,393
And...off the cuff without knowledge of your end goal...inline css isn't required, just use an internal style sheet. Tables did suit my needs in both cases I've run into (a server side process that pulls, formats and sends based on a time increment and a client side that fires onclick, pulls, formats and presents the email pre-send to the user).
 

Ent

Josiah
Thread Starter
Retired Trusted Advisor
Joined
Apr 11, 2009
Messages
5,467
To be honest I'm just wondering, having heard that it's a different set of standards and the conventional web-dev wisdom doesn't apply.
However as I've looked further, it seems that no standards really apply. You just have to use the most basic coding techniques to hand and test it on as many systems as possible.
 
Joined
Apr 29, 2006
Messages
4,393
To be honest I'm just wondering, having heard that it's a different set of standards and the conventional web-dev wisdom doesn't apply.
However as I've looked further, it seems that no standards really apply. You just have to use the most basic coding techniques to hand and test it on as many systems as possible.
That's the way I read it. The only real restrictions I can think of are referencing an external style sheet. You should be able to maintain normal html standards without compromise. Basically, you're just writing a web page with only style and body tags. Hope this helps. Edit: check that...not necessarily the body tag.
 

colinsp

Colin
Joined
Sep 5, 2007
Messages
2,355
You will also find that different email programmes display html emails differently. They are a real challenge to get looking right for all of your recipients.
 

Ent

Josiah
Thread Starter
Retired Trusted Advisor
Joined
Apr 11, 2009
Messages
5,467
And of course no javascript, and include a plain text version.
 
Joined
Aug 12, 2007
Messages
696
One gotcha that I ran into had to do with images. I never tried composing messages with inline images, instead images are referenced in the same way html pages are coded (i.e., <img src="http://website.com/image.png">). The gotcha that I ran into is if you reference an image on a secure server (i.e., <img src="https://website.com/image.png">) and that server uses a self-signed ssl certificate, many email clients simply will not display the image because the client cannot/will not recognize the certificate as valid.

That on took me a few hours to figure out... hope it saves someone else out there!
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Members online

Top