mailgun/transactional-email-templates

Email template not rendering correctly in GMail.

steadweb opened this issue · 11 comments

Hi,

I'm using the inline version of email alert found within the repo, but the email looks like the following:

image

Will the OS have an impact on how the email is rendered? I'm currently using Ubuntu 14.04

Just checked on my iPhone and the template renders as expected, so this will most likely be a Linux/Ubuntu issue 😄

Interesting, I'm not aware of OS having an impact. @steadweb What client are you using here, is this Gmail web?

And if so, what browser?

On Wed, Jan 13, 2016 at 4:23 PM, Lee Munroe notifications@github.com
wrote:

Interesting, I'm not aware of OS having an impact. @steadweb
https://github.com/steadweb What client are you using here, is this
Gmail web?


Reply to this email directly or view it on GitHub
#20 (comment)
.

Thanks for the quick responses @leemunroe and @ebeeson.

I was using GMail Web, I wasn't using an application installed on the OS. The browser I was using was Google Chrome, version 47.0.2526.106.

I'm having the same problem. Client: Firefox 45 on Mac OS X 10.11.3. Same for Chrome 50.0.2661.11 dev (64-bit) on Mac OS.

bildschirmfoto 2016-03-07 um 16 20 08

I am have the same problem OS X El Capitan OS X 10.11.3 (15D21) and Chrome Versión 48.0.2564.116 (64-bit)

captura de pantalla 2016-03-14 a las 9 47 08 p m

Are all of you inlining the CSS? As I understand, most mail clients remove style tags so that it doesn't change the style of the content OUTSIDE the email. @steadweb I'm guessing the reason it works on your iPhone is that it uses a different HTML rendering engine that allows style tags (since those wouldn't affect the natively coded GUI).

But that's just my guess.

@Anon-Penguin I'm using the example inline templates found within this repo.

https://github.com/mailgun/transactional-email-templates/blob/master/templates/inlined/action.html

I am also getting similar results and it does not matter which OS, client, etc. I used the templates as provided by Mailgun and inlined it via Premailer as they recommend. Yet it renders very crudely. Are you guys putting the inlined code directly into your mailer? That is what I am doing.

Tested the inlined alert email today in Litmus and looked fine.

image

@darkknightsds Can you share the HTML you're using?

@leemunroe Thanks for verifying it is working on your end. I can share some HTML later today but what is interesting is that the template on your personal github worked just fine for me. I followed the exact same process for both, too.