seanpowell / email-boilerplate Goto Github PK
View Code? Open in Web Editor NEWThe email boilerplate for sending out nicely formatted messages.
Home Page: htmlemailboilerplate.com
The email boilerplate for sending out nicely formatted messages.
Home Page: htmlemailboilerplate.com
e.g. via the wiki page or what have you.
I've noticed mailchimp adds
<style type="text/css">
.ReadMsgBody{width:100%;}
.ExternalClass{width:100%;}
</style>
at the top of the email(not inline). After a bit of googling found this http://learnpublicaster.groupsite.com/post/hotmail-update-changes-to-table-rendering-might-affect-your-template.
May be it should be included to boilerplate
Regards,
Dmitry
I noticed in the e-mail template, that some parts of the code are based on The MailChimp Reset.
Unfortunately, the Mailchimp license is CC Share-alike, which means that the derived material based upon it should be licensed under the same license or in a equivalent one. For code, the equivalent type ("copy-left" type) would be the GPL.
So, this boilerplate can't be MIT.
Reading through the documentation for the update V0.5 boilerplate I noticed that the documentation says to use the "mobile-link" class but the code uses "mobile_link". If the hyphen vs underscore does not matter that should be documented.
Thanks for the great work!
This boiler plate seems to trigger the gmail spam in google apps. I have tried it without this boilerplate with exact same content and passed.
Please decide once and forever on the coding style, the file is set to use tabs for indentation and uses spaces, the indentation is broken in some places.
Thanks for the great work.
Sometimes in your email newsletter design, you may not want the Mail app on iOS devices to turn your telephone number into a blue hyperlink.
The following meta tag can disable automatic detection of possible phone numbers:
<meta name="format-detection" content="telephone=no">
Perhaps useful for others to include as a comment to let users choose if they want to keep it in there?
Sadly there is no way to disable automatic detection of addresses yet.
Schemas in emails can be used to represent various types of entities and actions. Email clients that understand schemas, such as Gmail, can render entities and actions defined in the messages with a consistent user interface. In the case of Gmail, this means that the emails can display quick action buttons that let users take actions directly from their inboxes...
Shamelessly pulled from here
Broken link from http://htmlemailboilerplate.com/ to this github project. Makes finding the github a bit tricky.
Hi,
I just started using your email template and it gives some great advises (to me as a novice).
There is however a notion to "bring inline" certain styles, which confuses me.
Does this mean that, for example, you have to copy the standard styles for images to each instance of an image in the email?
And for each h1, h2, h3... table, and so on?
Or do I have to move the <style> block to be inside the ?
Either way, maybe the action to "bring inline" styles could be explained in more detail in the template?
It could be due to the fact that I'm a non-native English speaker as well.
Cheers,
Jelmer
Hi,
The line-height: 100%
CSS isn't leaving enough space between lines in gmail for h2 (and possibly other styles), meaning that the two lines overlap when the heading wraps. Using line-height: normal
resolves this, but I don't know how that affects the look on Hotmail, which according to the comments this was designed to fix.
Outlook.com forces all paragraph tags to have margin: 0 0 1.35em 0;
and does not (as far as I know) allow this to be overridden. This causes a bit of a shock after seeing the boilerplate's p { margin: 1em 0; }
work so well everywhere else.
Issue: Email is not centred in outlook 2007, 2010, 2013
Fix: I hardcoded (width="100%") to the body and main table, I'm not sure if its needed on both or adding it to only one of them will do the trick.
so new new:
<body width="100%">
<table width="100%" cellpadding="0" cellspacing="0" border="0" id="backgroundTable">
I noted that making the img {height:auto;} inline created major rendering problems in apple mail 4.5.
UPDATED : Sorry i just find the image_fix {display:block;}
class that solve the problem...
Just a question: Why not applying it to all image tag by default ?
I encountered that issue :
http://stackoverflow.com/questions/8479090/remove-spacing-between-table-cells-and-rows
And this solution works for me:
http://stackoverflow.com/a/8480459/1359623
So i add display:block; for the img style:
img {outline:none; text-decoration:none; -ms-interpolation-mode: bicubic; display: block; }
Hope this help someone...
If you run boilerplate code through HTML validator, it gets tripped up on this line:
<HTML xmlns="http://www.w3.org/1999/xhtml">
Exact error thrown is "there is no attribute "xmlns"" with description of:
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).
Not really an issue as such, but I tend to add display: block to the img declaration in the css:
img{height:auto; line-height:100%; outline:none; text-decoration:none; display: block;}
This saves having to add it to each img individually.
regarding .image_fix {display:block;}
I have found that !important is getting ignored by outlook 2007 when applying color to h1-6 tags. The apparent workaround is to just declare the color twice, which should work fine with hotmail.
color:black; color:black !important;
I haven't seen this mentioned anywhere, but I haven't looked that hard either, so feel free to ignore this if I'm overlooking something.
this is the last version that existed in htmlemailboilerplate site before 404?
3 years ago ?
<span class="mobile_link">
<a href="tel:123-456-7890">123-456-7890</a>
</span>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.