1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: HTML email

Discussion in 'Web Design & Development' started by Ent, Dec 21, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. Ent

    Ent Trusted Advisor Thread Starter

    Joined:
    Apr 11, 2009
    Messages:
    5,467
    First Name:
    Josiah
    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.
     
  2. ckphilli

    ckphilli

    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.
     
  3. ckphilli

    ckphilli

    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).
     
  4. Ent

    Ent Trusted Advisor Thread Starter

    Joined:
    Apr 11, 2009
    Messages:
    5,467
    First Name:
    Josiah
    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.
     
  5. ckphilli

    ckphilli

    Joined:
    Apr 29, 2006
    Messages:
    4,393
    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.
     
  6. colinsp

    colinsp

    Joined:
    Sep 5, 2007
    Messages:
    2,301
    First Name:
    Colin
    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.
     
  7. Ent

    Ent Trusted Advisor Thread Starter

    Joined:
    Apr 11, 2009
    Messages:
    5,467
    First Name:
    Josiah
    And of course no javascript, and include a plain text version.
     
  8. ehymel

    ehymel

    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!
     
  9. Sponsor

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 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1081886

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice