Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(5)

Issue 12076044: General base template for html emails (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 9 months ago by ana.balica
Modified:
11 years, 7 months ago
Reviewers:
thomas.j.waldmann, waldi
Visibility:
Public.

Description

Since we are delivering notifications using HTML, this base file will be useful to any other HTML mails. For reference I have used http://htmlemailboilerplate.com/ , mailchimp and campaignmonitor tips. Also I have tested the rendered template (with some content in it) using https://litmus.com/ which sends the email to the big majority of web/mobile/desktop mail clients and take a screenshot of each. Also it analyses the code and informs about potential problems. The issues announced are related to some mail clients that don't support margin or padding. Nevertheless (even without some margin/padding) the content looks ok in all major clients. If you wish I can attach a link to a zip with all screenshots taken by limus.

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix typo order to border #

Patch Set 3 : Add comments for original source of html mail code #

Total comments: 7

Patch Set 4 : MIT licensed #

Patch Set 5 : Remove content-type meta #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
A MoinMoin/templates/mail/html_base.html View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download

Messages

Total messages: 10
Thomas.J.Waldmann
https://codereview.appspot.com/12076044/diff/1/MoinMoin/templates/mail/html_base.html File MoinMoin/templates/mail/html_base.html (right): https://codereview.appspot.com/12076044/diff/1/MoinMoin/templates/mail/html_base.html#newcode2 MoinMoin/templates/mail/html_base.html:2: <html xmlns="http://www.w3.org/1999/xhtml"> I must admit that I do not ...
11 years, 9 months ago (2013-07-30 16:35:34 UTC) #1
ana.balica
https://codereview.appspot.com/12076044/diff/1/MoinMoin/templates/mail/html_base.html File MoinMoin/templates/mail/html_base.html (right): https://codereview.appspot.com/12076044/diff/1/MoinMoin/templates/mail/html_base.html#newcode2 MoinMoin/templates/mail/html_base.html:2: <html xmlns="http://www.w3.org/1999/xhtml"> On 2013/07/30 16:35:35, Thomas.J.Waldmann wrote: > I ...
11 years, 9 months ago (2013-07-30 19:29:12 UTC) #2
Thomas.J.Waldmann
> I wrote in the issue description that as a reference I used A right, ...
11 years, 9 months ago (2013-07-30 21:25:13 UTC) #3
Thomas.J.Waldmann
https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html File MoinMoin/templates/mail/html_base.html (right): https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html#newcode2 MoinMoin/templates/mail/html_base.html:2: {# Check http://htmlemailboilerplate.com/ for more information #} He licenses ...
11 years, 9 months ago (2013-07-31 14:45:18 UTC) #4
waldi
https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html File MoinMoin/templates/mail/html_base.html (right): https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html#newcode6 MoinMoin/templates/mail/html_base.html:6: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> The content-type of the ...
11 years, 9 months ago (2013-07-31 14:53:45 UTC) #5
ana.balica
https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html File MoinMoin/templates/mail/html_base.html (right): https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html#newcode6 MoinMoin/templates/mail/html_base.html:6: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> On 2013/07/31 14:53:45, waldi ...
11 years, 9 months ago (2013-07-31 15:18:13 UTC) #6
waldi
On 2013/07/31 15:18:13, ana.balica wrote: > https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html > File MoinMoin/templates/mail/html_base.html (right): > > https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html#newcode6 > ...
11 years, 9 months ago (2013-08-01 13:28:19 UTC) #7
ana.balica
On 2013/08/01 13:28:19, waldi wrote: > It is a editors draft. Please show that this ...
11 years, 9 months ago (2013-08-01 16:53:20 UTC) #8
waldi
On 2013/08/01 16:53:20, ana.balica wrote: > On 2013/08/01 13:28:19, waldi wrote: > https://codereview.appspot.com/12076044/diff/12001/MoinMoin/templates/mail/html_base.html#newcode21 > > ...
11 years, 9 months ago (2013-08-12 13:11:52 UTC) #9
ana.balica
11 years, 9 months ago (2013-08-12 15:50:56 UTC) #10
On 2013/08/12 13:11:52, waldi wrote:
> Please explain how a table with exactly one row and column would show
something
> useful.
> This is called a layout table and the answer is simple "no".

A layout table is useful for setting the width of the email to 100%. 
I have checked several different templates from campaignmonitor and mailchimp
and all of them use the same nested structure: background table > tr > td (a
single tr and a single tr, which already contain all the other data, i.e. nested
tables).

Unfortunately there are no standards, that would point to the exact way of doing
it. That's why I was researching on the basis of platforms that provide HTML
mails as a service and follow the guides made by them, which i assume are based
on experience with lots of mail clients.

For reference you can take a look at some examples from here:
http://www.campaignmonitor.com/templates/
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b