Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mobile version displayed in some clients #40

Closed
rgbjay opened this issue Feb 10, 2016 · 94 comments
Closed

Mobile version displayed in some clients #40

rgbjay opened this issue Feb 10, 2016 · 94 comments

Comments

@rgbjay
Copy link

rgbjay commented Feb 10, 2016

In my Litmus testing I found that in:

Polymail
Outlook Web App

The columns that were meant to be 50% width were stacking as 100% columns.

@arnaudbreton
Copy link
Contributor

Hi @rgbjay, thanks for reaching out!

About the first 4 clients, we'll run some test to understand better what's going on here.

About Google Apps, please refer to #24. It seems that there is some versions of it out here which render things in a wrong way. So far we haven't managed to reproduce it on our own Google Apps (or Gmail) accounts but still looking for new cases, if you could add details about yours into the list.

Keep you posted on our progress.

@epayet
Copy link
Contributor

epayet commented Feb 29, 2016

I have the same render issues using Litmus as well. These desktop clients are showing a mobile version :/

Edit:
I would also add outlook.com and office365, they have the same behaviour, showing mobile version on desktop. This might be related to screen sizes?

@VinceVachon
Copy link

+1

@strukturedkaos
Copy link

Has anyone figured out a workaround for this issue in the meantime?

@arnaudbreton
Copy link
Contributor

Hey guys, sorry for the delay in the answers here.

After digging into that issue, it turns out the Outlook Webmail 2016 behaviour won't allow us to support both and desktop and mobile render. For that reason, we decided it would be better for MJML users to go for the mobile rendering, leading to a great render on mobile devices and still decent one on desktop.

About Google Apps, we still haven't figured out what is the exact reason of the issue for some versions of the client. Please watch #24 to get the last updates about this issue.

Apologies for the inconvenience!

Closing this issue for now.

@iRyusa iRyusa changed the title 50% width mjcolumn elements displaying as 100% width in some clients Mobile version displayed in some clients Apr 29, 2016
@iRyusa
Copy link
Member

iRyusa commented Apr 29, 2016

Updated the issue to close some

@g0ddish
Copy link

g0ddish commented Apr 29, 2016

I can reliably reproduce the Google Apps for Business desktop rendering emails displaying as mobile and non apps for business where it renders as expected. I may take a deeper dive when I have more free time. Does anyone else have more information regarding this bug?
Example
http://imgur.com/pELSirr

@g0ddish
Copy link

g0ddish commented Apr 29, 2016

Ok, I found a CSS rule that is being passed to regular gmail but not business apps. It looks like a style tag is being passed in one but not the other which is odd because I was under the impression that gmail strips all style tags from all emails.

Offending div
Offending div
Css belonging to div
CSS belonging to div

MJML try it live

So this second style tag wasn't stripped from regular gmail but was from business; maybe this is an issue with gmail?

<style type="text/css">
  @media only screen and (min-width:480px) {
    .mj-column-per-50, * [aria-labelledby="mj-column-per-50"] { width:50%!important; }
  }
</style>

@iRyusa iRyusa reopened this May 2, 2016
@iRyusa
Copy link
Member

iRyusa commented May 2, 2016

Closed by mistake, reopened sorry

@g0ddish Yes, media queries are being totally removed from google apps gmail for unknown reason :/

@dalefish
Copy link

dalefish commented May 3, 2016

Same issue here with the early versions of outlook (lte 2003) showing single column.

image

@lRlevolution
Copy link

lRlevolution commented May 18, 2016

I've found a dirty solution to change the % of the column from 100% to lets say 300px or whatever the column width is

for example:

<div aria-labelledby="mj-column-per-50" class="mj-column-per-50" style="vertical-align:bottom;display:inline-block;font-size:13px;text-align:left;width:300px;"> where 300px was originally 100%;

So far it works for everything but Lotus Notes 8.5 and Outlook 2003.

@iRyusa
Copy link
Member

iRyusa commented May 18, 2016

@lRlevolution but it will break the mobile first approach sadly

@iRyusa
Copy link
Member

iRyusa commented May 18, 2016

Update: We're waiting for #227 to be merged to suppport Lotus Notes 8.5, Outlook 2000, Outlook 2002, Outlook 2003

@iRyusa
Copy link
Member

iRyusa commented May 26, 2016

Update removing older outlook since 2.1.1 got fix for them
Outlook 2000
Outlook 2002
Outlook 2003

@Tlapi
Copy link

Tlapi commented Jun 21, 2016

This issue also affects major inbox provider in Czech republic Seznam.cz with @email.cz, @seznam.cz, @post.cz)

@Tlapi
Copy link

Tlapi commented Jun 21, 2016

My solution:

Replace attrs on mj-column with pixels if there is more than 1 column.

Add this media query:

@media only screen and (min-width:480px) {
    .mj-column-per-100, * [aria-labelledby="mj-column-per-100"] { width:100%!important; }
.mj-column-per-50, * [aria-labelledby="mj-column-per-50"] { width:50%!important; }
.mj-column-per-33, * [aria-labelledby="mj-column-per-33"] { width:33%!important; }
  }
@media only screen and (max-width:480px) {
    .mj-column-per-100, * [aria-labelledby="mj-column-per-100"] { width:100%!important; }
.mj-column-per-50, * [aria-labelledby="mj-column-per-50"] { width:100%!important; }
.mj-column-per-33, * [aria-labelledby="mj-column-per-33"] { width:100%!important; }
  }

Tested on EOA, works great on every device.

Just a minor issue is that 3 cols get stacked as 2 + 1.

@iRyusa
Copy link
Member

iRyusa commented Jun 21, 2016

I don't really understand your point @Tlapi :

@media only screen and (min-width:480px) {
    .mj-column-per-100, * [aria-labelledby="mj-column-per-100"] { width:100%!important; }
.mj-column-per-50, * [aria-labelledby="mj-column-per-50"] { width:50%!important; }
.mj-column-per-33, * [aria-labelledby="mj-column-per-33"] { width:33%!important; }
  }

is what MJML is generating, right ?

You're adding this:

@media only screen and (max-width:480px) {
    .mj-column-per-100, * [aria-labelledby="mj-column-per-100"] { width:100%!important; }
.mj-column-per-50, * [aria-labelledby="mj-column-per-50"] { width:100%!important; }
.mj-column-per-33, * [aria-labelledby="mj-column-per-33"] { width:100%!important; }
  }

But every column already have a width of 100% by default so I don't understand why you want to add them ?

@Tlapi
Copy link

Tlapi commented Jun 21, 2016

@iRyusa Yes, that's why in some cases you see mobile version on desktop. That's why i have replaced mj-column width attribute with pixels, if there is more than one column. If there is only one column, it remains 100%. And I'm adding:

@media only screen and (max-width:480px) {
    .mj-column-per-100, * [aria-labelledby="mj-column-per-100"] { width:100%!important; }
.mj-column-per-50, * [aria-labelledby="mj-column-per-50"] { width:100%!important; }
.mj-column-per-33, * [aria-labelledby="mj-column-per-33"] { width:100%!important; }
  }

For our products-heave newsletters we cant allow to get all the content stacked in one column on the desktop.

@iRyusa
Copy link
Member

iRyusa commented Jun 21, 2016

So you're removing width: 100% on mj column but adding them with a media query.
Problem is most of mobile clients doesn't support media queries and will be completely unreadable ?

@Tlapi
Copy link

Tlapi commented Jun 21, 2016

No, it will stack anyway ;-)

Only thing is that 3 columns get displayed as 2 + 1

I'll post a EOA test result.

@Tlapi
Copy link

Tlapi commented Jun 21, 2016

https://www.emailonacid.com/app/acidtest/display/summary/QGxXVnhYvmovkzLbl6fNKVbHZ4LtZk3dNZWiBfOyl68ch/shared

@Tlapi
Copy link

Tlapi commented Jun 21, 2016

On a clients with poor css support it gets stacked bud its not pixel perfect. There are some glitches.

But i prefer this solution over the one where you see mobile version on desktop.

@pjar
Copy link

pjar commented Jul 27, 2017

It looks like MJMLl works after using the advise from @dmchoull. We are using Rails and turning premailer off was the solution for us.

@lsegeta
Copy link

lsegeta commented Aug 17, 2017

@Tlapi Seznam.cz doesnt support media query. I tried your solution but it isnt working.

@kostyasb
Copy link

Hello! How can I disable the adaptation in letters? So that in the main customers the blocks are not 100% stretched, and then the pancake is too broken off this

@ngarnier
Copy link
Member

@kostyasb, 2 options:

  • The emails clients you're opening the email on don't support media queries
  • The platform you use to send emails alter the HTML and breaks the responsiveness

It's impossible to help you without more information.

@kostyasb
Copy link

@ngarnier, The client on which I opened the mail from Yandex (in Russia, one of the largest postal services), I send it via the SendSay.ru platform (maybe it breaks, but I can not refuse it), tomorrow I'll try to send it through Thunderbird, I'll unsubscribe. While the issue was solved simply by the DIV's


Клиент на котором открывал - почта от Яндекса (в России один из крупнейших почтовых сервисов), отправку делаю через платформу SendSay.ru (возможно она ломает, но от неё тоже не могу отказаться), завтра попробую отправить через Thunderbird, отпишусь. Пока решил вопрос просто дивами

@dalefish
Copy link

dalefish commented Dec 21, 2017 via email

@kostyasb
Copy link

kostyasb commented Dec 21, 2017

@dalefish, Yandex supports additivity:
Desktop: http://skrinshoter.ru/s/211217/Jbo29FB2?a
Mobile: http://skrinshoter.ru/s/211217/Vo5c8G2y?a

@kostyasb
Copy link

My layout
It should be: http://skrinshoter.ru/s/211217/SbhYYHsK?a
How it turned out: http://skrinshoter.ru/s/211217/p28PjYgy

@kostyasb
Copy link

In Outlook, too, everything is floating, in general, decided to switch to native layout

@ngarnier
Copy link
Member

We've come a long way since the time where a mobile layout was displayed instead of a desktop layout in several clients so that we needed that issue to reference them.

As we now offer a way to display a desktop layout on outlook.com, MJML will not display a mobile layout instead of a desktop layout on a any major email client.

For issues with specific local email clients, please open a dedicated issue.

@Tlapi
Copy link

Tlapi commented Feb 28, 2018

@ngarnier I've tried test from test.js with mjml-core: 4.0.0 and there still is problem in outlook:
https://www.emailonacid.com/app/acidtest/YkWZ1K08vMJYVlmJTTX3Q9TmWhbyyJ1tgTzpFDiWToPnw/list

Or is this about some other version?

@ngarnier
Copy link
Member

@Tlapi you need to add owa="desktop" on <mjml> (more about it here).

@Tlapi
Copy link

Tlapi commented Feb 28, 2018

@ngarnier Ah, I see. In test.js there is owa_desktop="true" ;-)

@ianperrettive
Copy link

ianperrettive commented May 11, 2018

I am seeing this problem in Outlook.com. It appears the mj-column-per-33 class is getting prefixed to x_mj-column-per-33 but the class doesn't seem to exist.

I am using the MJML app and sending using the sending functionality in the app via a MailJet account

screen shot 2018-05-11 at 15 31 18

Offending code

    <mj-section padding="0">
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/6b/89/ant-colony-pos-461663.jpg" title="asset_1_title" alt="asset_1_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/1f/a5/523109.jpg" title="asset_2_title" alt="asset_2_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/bf/b9/528094.jpg" title="asset_3_title" alt="asset_3_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
    </mj-section>

Also, is there any new info regarding fixing this issue in Gmail?

Thanks in advance, keep up the great work!

@iRyusa
Copy link
Member

iRyusa commented May 11, 2018 via email

@ianperrettive
Copy link

ianperrettive commented May 11, 2018

@iRyusa sorry, didn't see that, however when I add owa="desktop" to the <mjml> tag in the MJML app the preview goes blank? - Found the work around here mjmlio/mjml-app#234

re Gmail issue, where it stacks the columns on initial open. I have tried using the new version of Gmail but still get the same problem (hteumeuleu/email-bugs#24)

@iRyusa
Copy link
Member

iRyusa commented May 11, 2018 via email

@ianperrettive
Copy link

Thanks, got Outlook.com working. I am using the new version of Gmail but I am still seeing the columns stack.

@iRyusa
Copy link
Member

iRyusa commented May 14, 2018

How did you send your email ? Try to reproduce with putsmail.com without inline style checked. And if It works then your ESP is altering the HTML

@ianperrettive
Copy link

OK, It worked with Putsmail.com. I was using the MJML app linked to a MailJet account to send the emails, assumed that would be the bests combination.

@ngarnier
Copy link
Member

Very weird, the MJML app doesn't alter the HTML nor does the Mailjet API. Can you please share the MJML app version you're using as well as the full markup @ianperrettive ? Very curious, I'd like to dig more.

@ianperrettive
Copy link

ianperrettive commented May 14, 2018

Here you go, hope it helps:

MJML App v2.8.0 (It said I was downloading 2.9 and the file was named 2.9)
MJML v^4.0.3

<mjml></mjml> <!-- work around as owa attr on mjml tag breaks email -->
<mjml owa="desktop">
  <mj-head>
    <mj-attributes>
      <mj-section background-color="#ffffff" padding="24px 12px 0 12px"/>
      <mj-text color="#282828" font-size="16px" line-height="24px"/>
      <mj-button background-color="#6eb928" color="#ffffff" font-size="20px" border-radius="0" />
      <mj-all padding="0" font-family="Helvetica,'Helvetica Neue',Arial,Geneva,sans-serif" />
      <mj-class name="align-center" align="center"/>
    </mj-attributes>
    <mj-style inline="inline">
      p:first-child {
        margin-top: 0;
      }
      
      p,
      li {
        line-height: 1.5;
      }
      
      li {
        margin-bottom: 12px;
      }
      
      li:last-child {
        padding-bottom: 0;
      }
      
      strong {
        font-weight: bold;
      }
      
      .font-weight--light {
         font-weight:100;
      }
      
      .link {
        color:#008cd5;
        text-decoration:underline;
      }
      
      .disclaimer {
        font-size:12px;
        color:#666666;
      }
    </mj-style>
  </mj-head>
  
  <mj-body background-color="#cccccc">
    
    
    <mj-section>
      <mj-column>
        <mj-image width="423" src="http://www.scholastic.co.uk/web-assets/logos/logo_resource_bank_p_inline.png" alt="Scholastic Resource Bank logo" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
    </mj-section>
    
    <mj-section padding-bottom="12px">
      <mj-column>
        <mj-text mj-class="align-center">
          <h1 class="font-weight--light" style="font-size:24px; line-height:1.125; margin:0">
            WELCOME TO SCHOLASTIC RESOURCE BANK!
          </h1>
        </mj-text>
      </mj-column>
    </mj-section>
    
    <mj-section padding="0px 12px 0px 12px">
      <mj-column>
        <mj-divider border-color="#c9c9c9" border-width="1px"></mj-divider>
      </mj-column>
    </mj-section>
    
    <mj-section padding-top="12px">
      <mj-column>
        <mj-text>
          <p>Dear Mrs A Nother,</p>
          <p>We’re delighted you’ve chosen to join <strong>Scholastic Resource Bank: Primary</strong>.</p>
          <p>You now have access to around 7000 teaching resources, including our premium downloadable content. As a member, you also get a wealth of additional benefits:</p>
          <ul>
            <li><strong><a href="https://resource-bank.scholastic.co.uk/search/search?age_type=age_range&search%5Bmag_id%5D=76680&search%5Border_by%5D=newest" class="link">Brand new</a></strong> KS1/KS2 resources added every week*</li>
            <li>Exclusive member-only <strong>offers and giveaways</strong></li>
            <li><strong>10% off</strong> Scholastic catalogue purchases – just enter the code <strong>XXXXX</strong> at the checkout on our online shop**</li>
            <li>Access to our <strong><a href="https://resource-bank.scholastic.co.uk/calendar" class="link">What’s today…?</a></strong> calendar of significant events to help you plan topical lessons</li>
            <li>Your very own <strong><a href="https://resource-bank.scholastic.co.uk/my_folder" class="link">My folder</a></strong> to store your favourite resources and help with your planning</li>
          </ul>
        </mj-text>
      </mj-column>
    </mj-section>
    
    <mj-section padding-bottom="24px">
      <mj-column>
        <mj-button font-weight="100">
          Get started &#8811;
        </mj-button>
      </mj-column>
    </mj-section>
    
    <mj-section>
      <mj-column>
       <mj-text line-height="1" mj-class="align-center">
        <h2 class="font-weight--light" style="font-size:20px; margin:0">
          Our most popular resources
        </h2>
      </mj-text>
      </mj-column>
    </mj-section>
    
    <mj-section padding="0">
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/6b/89/ant-colony-pos-461663.jpg" title="asset_1_title" alt="asset_1_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/1f/a5/523109.jpg" title="asset_2_title" alt="asset_2_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/bf/b9/528094.jpg" title="asset_3_title" alt="asset_3_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
    </mj-section>
    
    <mj-section padding="0">
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/e0/c5/801157.jpg" title="asset_4_title" alt="asset_4_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/af/3c/tongue-twisters-801448.jpg" title="asset_5_title" alt="asset_5_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
      <mj-column width="33%" padding="12px">
        <mj-image src="https://www.scholastic.co.uk/assets/a/ce/eb/ks2mathsboosterextraonline-final-1711932.jpg" title="asset_6_title" alt="asset_6_alt" href="https://resource-bank.scholastic.co.uk"></mj-image>
      </mj-column>
    </mj-section>

    <mj-section>
      <mj-column background-color="#dcdcdc" padding="12px 12px 0 12px">
        <mj-text>
          <h3 class="font-weight--light" style="font-size:18px; margin:0">DO YOU HAVE ANY QUESTIONS?</h3>
          <p>If you have any questions about using either the website or your membership, we'll be glad to help.</p>
          <p>Call <strong>0845 850 4411</strong> or email <strong>
            <a href="mailto:resourcebank@scholastic.co.uk" class="link">resourcebank@scholastic.co.uk</a></strong><br/> Monday-Friday, 8.30am-5pm
          </p>
        </mj-text>
      </mj-column>
    </mj-section>
    
    <mj-section>
      <mj-column>
        <mj-text mj-class="align-center">
          <a href="https://twitter.com/ScholasticUKTch" style="display:inline-block; text-decoration: none; width:25px">
            <img width="22px" height="22px" src="http://www.scholastic.co.uk/assets/a/be/f9/twitter-1316576.png" href="https://twitter.com/ScholasticUKTch"/>
          </a>

          <a href="http://www.youtube.com/user/scholasticfilmsuk" style="display:inline-block; text-decoration: none; width:25px">
            <img width="22px" height="22px" src="http://www.scholastic.co.uk/assets/a/ab/51/youtube-1316560.png" href="https://twitter.com/ScholasticUKTch"/>
          </a>

          <a href="https://www.facebook.com/scholasticukteachers" style="display:inline-block; text-decoration: none; width:25px">
            <img width="22px" height="22px" src="http://www.scholastic.co.uk/assets/a/4c/c3/facebook-1316528.png" href="https://twitter.com/ScholasticUKTch"/>
          </a>

          <a href="https://www.pinterest.com/ScholasticEd/" style="display:inline-block; text-decoration: none; width:25px">
            <img width="22px" height="22px" src="http://www.scholastic.co.uk/assets/a/5f/0d/pinterest-1316544.png" href="https://twitter.com/ScholasticUKTch"/>
          </a>
        </mj-text>
      </mj-column>
    </mj-section>
    
    <mj-section padding-bottom="24px">
      <mj-column>
        <mj-text>
          <p class="disclaimer">* Excludes some school holidays</p>
          <p class="disclaimer">** Exclusive Resource Bank member discount: 10% off purchases from Scholastic catalogues, including the 2017-18 Primary schools catalogue and Secondary schools catalogue and 2018 Primary Education catalogue only. Excludes Scholastic Reading Pro licences and lexiled book packs.</p>
          <p class="disclaimer">IMPORTANT: Please do not reply to this email.</p>
        </mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>

@ngarnier
Copy link
Member

Thanks a lot for the details.

Super weird, just tried sending from the app and can't reproduce your issue (tried with minifying/beautifying too): https://puu.sh/AlWDi/d6535a77c3.png.

@ianperrettive
Copy link

Very odd. Thanks for having a look. Just have to run with it.

@designimartinez
Copy link

Hello everyone,

I am having a problem with MJML. Small disclaimer, I've been coding with the platform just a few days, so I am not an expert.
My email providers, both Gmail and Yahoo, display the email wrong (see attachments below), as if in mobile version when it should be desktop.

The only way in which the email renders well, both in desktop and mobile version, is if I send it using Litmus Putsmail or with HubSpot (by creating a design file and email template, and then sending the email with the platform).

After reading all the posts and threads regarding this issue of emails not rendering properly on Gmail, I am not able to find a solution to this, and it is really a pity because I love the platform and I find it very very useful. I've tried many things, an example is adding '' at the beginning of the email, adding '' at the beginning of the email too. When I put '' the desktop version looks the same (renders as mobile version).

Thank you in advance!

These are the screenshots:

Email sent with Gmail to Gmail, mobile version (wrong)
Email sent with Litmus Putsmail to Gmail, mobile version (correct)
Email sent with Litmus Putsmail to Gmail, desktop version (correct)
Email sent with Gmail to Gmail, desktop version (wrong)
Desktop design should look like this
Mobile design should look like this

This is the MJML:
`






<mj-section background-color="#ffffff" padding-top="0px" padding-bottom="0px">
  <mj-column padding-top="0px" padding-bottom="0px" padding-left="30px" padding-right="30px">
    <mj-text align="center" padding-bottom="0px">
      <p style="padding-bottom:0px; color:#000000; font-weight:620; font-size:38px; font-family:apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;">All screen. All yours.</p>
      <p style="color:#787878; font-family:apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif; line-height:1.3;font-weight:400; font-size:16px;">Say hello to the future. iPhone 13 is now<br>available online and in stores.</br></p>
    </mj-text>

    <mj-button padding-top="0px" href="https://www.apple.com/shop/buy-iphone/iphone-13" background-color="linear-gradient(to bottom, #389be9, #026fc9)" width="45px" border-radius="4px" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" background-color="#3798e5" inner-padding="6px 7px 6px 7px">Buy</mj-button>
  </mj-column>
</mj-section>

<mj-section background-color="#ffffff" padding-top="0px">
  <mj-column width="150px">
  </mj-column>
  <mj-group width="50%">
    <mj-column>

      <mj-text padding-top="9px" text-decoration="none" padding-right="0px" padding-left="40px" color="#528ccf" align="center" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" font-weight="450"><a href="https://www.apple.com/iphone-14-pro">Learn more</a></mj-text>
    </mj-column>
    <mj-column>
      <mj-text padding-top="9px" text-decoration="none" padding-left="0px" padding-right="40px" color="#528ccf" align="center" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" font-weight="450"><a href="https://www.apple.com/retail/">Find a store</a></mj-text>
    </mj-column>
  </mj-group>
  <mj-column width="150px">
  </mj-column>
</mj-section>

<mj-section background-color="#ffffff">
  <mj-column width="600px">
    <mj-image padding="0px 60px 10px 60px" src="https://fdn2.gsmarena.com/vv/pics/apple/apple-iphone-12-3.jpg">
    </mj-image>
  </mj-column>
</mj-section>

<mj-section background-color="#ffffff">
  <mj-column padding-right="35px" padding-left="35px">
    <mj-text color="#323232" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="300" font-size="14px" align="center" padding-top="3px" padding-bottom="0px">All-new Liquid Retina display, the most advanced and color-accurate LCD in the industry. Even faster Face ID. The smartest, most powerful chip in a smartphone. A breakthrough camera system. And water resistance up to 6 meter for 30 minutes.</mj-text>
  </mj-column>
</mj-section>

<mj-section background-color="#ffffff" padding-bottom="10px" padding-top="0px">

  <mj-column inner-border-radius="3px" padding-top="10px" padding-bottom="0px" padding-right="10px" padding-left="10px" width="250px" inner-background-color="#f7f7f7">
    <mj-text color="#000000" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" padding-top="30px" padding-left="20px" padding-right="20px" font-weight="550" font-size="23px" align="center">iPhone Upgrade Program</mj-text>
    <mj-text color="#323232" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="300" font-size="11px" align="center" padding-left="27px" padding-right="27px" padding-top="3px" padding-bottom="0px">The easiest way to upgrade to the latest iPhone.</mj-text>
    <mj-text color="#528ccf" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="500" font-size="13px" align="center" padding-left="27px" padding-right="27px" padding-top="10px" padding-bottom="20px"><a href="https://www.apple.com/shop/iphone/iphone-upgrade-program">Learn more ></a></mj-text>
    <mj-text color="#323232" font-family="Sapple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="300" font-size="11px" align="center" padding-left="20px" padding-right="20px" padding-top="0px" padding-bottom="10px">Already part of the program?</mj-text>
    <mj-text color="#528ccf" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="500" font-size="13px" align="center" padding-left="27px" padding-right="27px" padding-top="0px" padding-bottom="0px"><a href="https://www.apple.com/shop/iphone/iphone-upgrade-program#:~:text=You're%20eligible%20to%20upgrade,plan.%C2%B3%20It's%20that%20easy.">Check your upgrade elegibility ></a></mj-text>

    <mj-image fluid-on-mobile="true" width="200px" src="https://i.ibb.co/4SGJ6Hx/iphone-13-model-unselect-gallery-1-202207.jpg" padding-bottom="0px"></mj-image>
  </mj-column>


  <mj-column inner-border-radius="3px" padding-top="10px" padding-bottom="10px" padding-right="10px" padding-left="10px" width="250px" inner-background-color="#f7f7f7">
    <mj-text color="#000000" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" padding-top="30px" font-weight="550" font-size="23px" align="center">Trade up to<br>iPhone 13</br> </mj-text>
    <mj-text color="#323232" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="300" font-size="11px" align="center" padding-left="20px" padding-top="3px" padding-bottom="12px" padding-right="20px">Get up to $375 in credit towards the purchase of iPhone 13 when you trade in your eligible smartphone.</mj-text>
    <mj-text color="#528ccf" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" line-height="1.2" font-weight="500" font-size="13px" align="center" padding="0px 30px 23px 30px"><a href="https://www.apple.com/de/trade-in/">Learn more ></a></mj-text>
    <mj-image fluid-on-mobile="true" width="350px" src="https://i.ibb.co/kyy4t9x/iphone-trade-in-202010-FMT-WHH-copy.jpg" padding-bottom="35px" padding-left="0px" padding-right="0px"></mj-image>
  </mj-column>
</mj-section>

<mj-section background-color="#ffffff">
  <mj-column>
    <mj-image padding="0px 0px 0px 0px" fluid-on-mobile="true" src="https://trendblog.euronics.de/wp-content/uploads/2020/10/Apple_iPhone12Pro-back-camera-magsafe-wallet_10132020.gif"></mj-image>
  </mj-column>
</mj-section>

<mj-section background-color="#ffffff" padding-top="0px">
  <mj-column padding-right="35px" padding-left="35px">
    <mj-text padding-right="0px" padding-left="0px" padding-bottom="0px" align="center" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;" font-size="25px" font-weight="600" line-height="1.2">Stick to Apple</mj-text>
    <mj-text padding-right="0px" padding-left="0px" align="center" padding-bottom="30px" padding-top="10px" font-family="Sapple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" font-size="15px" font-weight="500" line-height="1.3" color="#528ccf"><a href="https://www.apple.com/shop/iphone/accessories">Check our new<br>iPhone accesories</a></br>
    </mj-text>
  </mj-column>


</mj-section>



<mj-section background-color="#ffffff" padding-bottom="0px" padding="0px 30px 0px 30px">

  <mj-column width="270px" padding-top="10px" padding-bottom="0px" padding-right="0px" padding-left="10px">
    <mj-image align="center" padding-right="0px" padding-left="0px" fluid-on-mobile="true" padding-bottom="0px" src="https://i.ibb.co/v4RhRY8/compare-b5xf30djrsia-og-copy.png"></mj-image>
  </mj-column>

  <mj-column width="270px">
    <mj-text padding-right="0px" padding-top="30px" padding-bottom="0px" padding-left="0px" align="center" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" font-size="25px" font-weight="600" line-height="1.2">Compare<br>iPhone models</br>
    </mj-text>
    <mj-text padding-right="0px" padding-left="0px" align="center" padding-bottom="40px" font-family="apple-system,system-ui,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif" font-size="15px" font-weight="500" line-height="1.3" color="#528ccf"><a href="https://www.apple.com/iphone/cellular/">Find the iPhone that's<br>right for you ></br></a>
    </mj-text>
  </mj-column>
</mj-section>
`

@iRyusa
Copy link
Member

iRyusa commented Feb 23, 2023

The only way in which the email renders well, both in desktop and mobile version, is if I send it using Litmus Putsmail or with HubSpot (by creating a design file and email template, and then sending the email with the platform).

You said it yourself, it comes from the way you're sending the email : it alter the html MJML output so there's nothing we can do about it.

@designimartinez
Copy link

@iRyusa and is there a way of sending an email to a Gmail account without using HubSpot or Litmus Putsmail and getting it rendered properly?
Thanks

@iRyusa
Copy link
Member

iRyusa commented Feb 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests