I have an email template in Dynamics that renders on every email client except for Gmail on iOS. In that app, any two-column layouts show text in a single column 1 letter at a time.
I did some testing with the HTML for the template in parcel.io and when I sent from Parcel, the email rendered OK in Gmail. When sending from Dynamics though, the problem persisted.
The issue was fixed when these additional styles that get added on send were removed:
.tbContainer .columnContainer table{table-layout:fixed!important}
As a workaround, I added the following style to the email:
u .body .tbContainer .columnContainer table{table-layout:auto!important}
Then I added the body class to the <body> tag. The emails render fine now, but thought the Dynamics team should know.
We have a different structure for our section.
You can have div layouts and then div columns, but they wouldn't have table between them with our code inside.
If you have table inside div section, we expect the container to be on th or td element, not a div.
This can cause issue in our processing, because it mix between our code and custom code, and it can break things in an unexpected ways.
That's why I suggested to use a fresh section, with our code, just to be sure there are no issues with compatibility.
It's technically correct HTML code, but when you are using our data attributes, they need to be used as expected to avoid any issues in our processing of the email.
Can I ask you about the flex tags in the first div? As far as I know, there are no email clients that accept flex styles. Maybe Apple Mail does? Why would MS Dynamics even use flex? It doesn't make any sense. Also, the double divs are constant in Dynamics. The first div is to declare a container and the second div is to declare the container type, in this case an editor-blocktype of Content. Should that not be the case?
Thanks, the style isn't applied because the body tag needs the class="body"
I will try the fix you suggested with the table width change.
Hello,
The workaround in the code seems to not be working for me when I tested, I still see the broken email in Gmail iOS.
But I found the cause of the issue.
The content block in last section has the width set to 640px, if you remove that and set attribute width="100%" it will work the same but you don't need the additional style.
It should look like this: