#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2015
    Posts
    8
    Rep Power
    0

    Lightbulb HTML Email Doesn't Display Properly In Gmail, Yahoo, Aol, etc..


    So I've tried to follow along with many video tutorials & training, but EVERYONE seems to be wrong about what email service providers are allowing through their pre-processors. Everything is being broken & most of the CSS even inline isn't getting thru to display properly, especially in Gmail. Here's what I'm working with:

    Code:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <style type="text/css">
    body {
    margin:0px; padding:0px;
    font-family:'Arial Black';
    background-color:gold;
    }
    
    h1{
    margin:0px; padding:0px;
    }
    
    </style>
    </head>
    <body style="margin:0px; padding:0px; background-color:gold;">
    
    <div style="margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; margin:auto; border:2px solid black; max-width:600px; background-color:gray;" width="100%">
    <center>
    <img src="http://producerhookup.com/NewsLetters/NewsLetter3/images/Header.jpg" style="max-width:600px; margin:0px; padding:0px;" width="100%"/>
    <h1 style=" margin:0px 0px 0px 0px; padding:0px 0px 0px 0px; color:white; font-family:'Arial Black'; font-size:30px;">
    Drumma Boy Sound Kit Vol.1!!!
    </h1>
    <img src="http://producerhookup.com/NewsLetters/NewsLetter3/images/DrummaBoyDrumKit.png" style="max-width:300px; margin:0px; padding:0px;" width="100%"/>
    </center>
    
    <p style="margin:0px; padding:0px; margin-left:10px; color:white;">
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut 
    labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris 
    nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit 
    esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt 
    in culpa qui officia deserunt mollit anim id est laborum."
    </p><br>
    
    <p style="margin:0px; padding:0px; margin-left:10px; color:white;">
    "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut 
    labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris 
    nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit 
    esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt 
    in culpa qui officia deserunt mollit anim id est laborum."
    </p><br>
    
    
    <center>
    <img src="http://producerhookup.com/NewsLetters/NewsLetter3/images/FooterBar.jpg" style="max-width:600px; margin:0px; padding:0px;" width="100%"/>
    </center>
    </div>
    
    </body>
    </html>

    What am I missing to get this HTMl Email Template through & displaying properly? Thanks.
  2. #2
  3. ~ bald headed old fart ~
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2005
    Location
    chertsey, a small town s.w. of london, england
    Posts
    356
    Rep Power
    132
    Hi there Aceprogramming

    creating HTML emails, unfortunately, requires a "retro mindset".

    Here is some essential reading to help put you in that state...

    1. How to code HTML email newsletters
    2. How to code HTML email


    coothead
    ~ the original bald headed old fart ~

IMN logo majestic logo threadwatch logo seochat tools logo