Email template not rendering correctly in GMail.
steadweb opened this issue · 11 comments
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.
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.
@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.