Line wrapping issues with Email body template

I am having a lot of difficulties getting consistent formatting results from Workflow generated emails across different email clients. In particular, it seems web-based clients (GMail, Outlook) and especially Outlook for iOS really mangle the paragraphs with weird line breaks and text wrapping. Also, images are inconsistently sized. Outlook on Windows seems to be the truest to the template.

I am using Word body templates and I have followed all recommendations from KB articles here regarding margins, line spacing, extra space before/after paragraphs, page size, etc. I have to create many templates, but I really donโ€™t want to proceed until I come up with a consistent result that I am confident will display correctly (even close would be good enough!)

What are others doing to create professional and consistent results? I am happy to change my method - just need to know what works best before I invest any more time.

Thanks!

1 24 2,853
24 REPLIES 24

Steve
Platinum 4
Platinum 4

Make sure youโ€™re only pressing Enter at the end of a paragraph.

Yes, I have triple checked that.

Here is my template in Web Layout view with paragraph marks visible so you can see all my CRโ€™s:

For this one, GMail in Chrome actually looks perfect:

Outlook Web (in Chrome) and Outlook on iOS both look like this - notice the incorrect wrap after โ€œPleaseโ€ and again after โ€œmessageโ€:

Outlook 365 on Windows 10 has no line wrapping issues but notice the logo is almost double the size:

I have tried everything โ€“ put all text into tables, changed page size & orientation, changed margins, cleared all formatting and started with a brand new template document but there is no apparent rhyme or reason to the undesirable extra
line breaks. Most of my clients will be using Outlook on Windows, so the image resizing is kind of major for me too.

Unfortunately, I have only that one idea. I encourage you to contact support@appsheet.com directly to see if that team has any better suggestions.

OK, thanks for the suggestion anyway!

Did you try adjusting the table properties? You can set the cell or table to a fixed width.

Iโ€™m not sure - Iโ€™ll give that a try. You know whatโ€™s really interesting - I just noticed that in my reply to @Steve (which I sent from Outlook) the same thing happened when it was posted to this site! Check it out:

Could it be something with the way AppSheetโ€™s SMTP Gateway is handling HTML? Maybe something between AppSheet and Office 365?

@GreenFlux - here is an example where I have put a bunch of text (randomly generated using the MS Word RAND Function) into a fixed-width table. Same result:

2X_6_6b9fedbcd9d2a16483b670f593573ac715aeecf7.png

Again, this is specific to Outlook Web and iOS.

Any thoughts on the image getting resized? Honestly I could let this whole thing slide if I could get that pert resolved. Thanks for the help!

Have you tried formatting rules to override the image size?
https://help.appsheet.com/en/articles/2737886-template-image-display

I have not, but I am not pulling this image from a table โ€“ it is part of the email body template. Anyway, I think I just figured it out: it seems that the image scaling was being ignored (only by Outlook) so I resized the image to a lower
PPI and that is working across all email clients.

OK, so I have done a great deal more research on the inline image sizing issue and I believe it is because of the way the email body templates are converted to HTML format. Yes, the issue seems to only present in Outlook, but the fix is on AppSheetโ€™s side of the court as far as I can tell. In a nutshell, the issue stems from the way that Outlook handles (or mishandles) DPI scaling. There are two options it seems: 1) insert MS Office specific headers and tags into the HTML or 2) convert inline images to a fixed size in pixels instead of using inches.

Examples of Option 1 abound on the nets by Googling โ€œOutlook dpi scalingโ€. Here are a few:



Option 2 is just the result of me testing the composition of an email using Gmail. Regardless of the dpi/ppi setting in the source image, Gmail scales it automatically and inserts it into the HTML using a pixel value.

Anybody else running into this?

Hi Jamie,

Thank you for the great research you have done regarding how Outlook handles image scaling.

I took a quick look at the articles you cited. The first article seems especially helpful.
The fixes described in part 1 and 2 of that article seem relatively simple.
I am not sure I fully understand the fix in part 3 and how I can apply that to an arbitrary Google Doc or Word document template which Google Docs and Word have automatically converted to HTML.
May be that will become clearer on further reflection.

Youโ€™re welcome, Phil โ€“ Iโ€™m glad you found it helpful! My primary concern is for inline images which are causing me big headaches in Outlook, so I am hoping that Parts 1 and 2 will be enough. Please let me know if you need any more information
from me or if you need me to test anything else. Thanks!

Further question. Have you tried using any other template type for the body instead of a Word file? Perhaps its an error specific to Word.

I have not, but suppose I will need to. While I can somewhat work around the image issue, the text wrapping is now my chief concern. Canโ€™t send out professional looking messages with that situation going on. @Phil do you have any thoughts on that piece of the puzzle? That issue affects Outlook on iOS and HTML5.

@Bahbus - after looking into it, Word is my only practical option. I was hoping maybe I could use PDF or straight HTML as an alternative, but apparently the only other option is a Google Doc and that would require adding a Google Drive data source to my App. My entire App is based on SQL for data and OneDrive for file storage. Adding/managing an additional data source to overcome this bug would be the nuclear option as I see it. Iโ€™m hoping AppSheet is going to be able to fix this quickly so I donโ€™t have to go there. Thanks for the suggestion anyway! @Aleksi or @Phil please let me know if you have any other suggestions or ideas. Thanks all!

Well, it was worth looking into. Iโ€™m having my own problems with a word template, now, that should be the exact same as one of @Aleksi examples (from a Google Doc) yesterday in a different thread. Mine doesnโ€™t work at all and the workflow throws an error.

Bump. Any progress on this @Phil or @Aleksi? I am still getting totally random and unsightly line breaks in Outlook Web and iOS - all the blue areas below are incorrectly inserted whitespace:

Jamie, could you please send one of these badly-formatted emails to praveen_seshadri@hotmail.com โ€” I can view it on Outlook on the web on on a local Outlook running on Windows 10. Will help get to the bottom of it.

Hi! I have had this issue as well. In outlook, it goes like thisโ€ฆ

Nick - 2/02/2022 The bread looks baked

In gmail, like this (correct)

Nick - 2/02/2022
The bread looks baked

Also, I had to remove my logo from my email templates because on gmail, they were normal sized, but on outlook, they took up the whole screen like 4 or 5x the original size. I always assumed this was an outlook problem and not appsheet, but was never sure. Thanks!

So this issue has gone from perplexing to completely bizarre. After re-engaging support, setting up a brand new Outlook.com mailbox and also troubleshooting with my business partner, it seems that this issue only affects my mailbox! So not only is it specific to Outlook on iOS or Outlook Web but it also only occurs (so far) on a single mailbox in our Office 365 domain. But it happens on every device (3 different iPads and 3 different PCs) where I have tested so it is not add-in / extension related. We even opened up my mailbox using Outlook Web in a separate tab on my partnerโ€™s PC for a side-by-side comparison and it looks fine in his mailbox but mine has the issue. One other possible clue is that you will probably see it in this post on the AppSheet community message board, because it seems when I (and only I?) email replies to these community threads the issue manifests there also. Anyway, thanks for offering to help out Praveen (and good to hear from you) I will forward you one of the offending messages now.

Update: the issue appears to be resolved. Unfortunately I have no clue what resolved it. I did go through my mailbox settings on Friday and get rid of everything that was not stock: rules, blacklists, whitelists, threaded view, etc. There was also one Outlook / Office extension I disabled yesterday, I will try to remember exactly what that was and see if I can reproduce.

@Jamie well that is good news, I suppose. If you do figure out what the issue was, do let us know.

@ginny FYI

Hi @Jamie,

Did you ever figure out the cause of the line wrapping issue, or figure out why it only affects Outlook? Iโ€™m having a similar issue with a LongText field that looks fine in Gmail but has incorrect line breaks in Outlook.

Sadly, no. I determined that it was only affecting my Outlook account. In the process of trying to figure out the issue, I changed about 20 different little things in my account (including disabling certain Web add-ins, display settings, etc.) and at some point the issue went away. As far as I can tell I have put everything back the way it was, but now I canโ€™t reproduce the issue any longer. Still a huge unsolved mystery. Sorry, not much help!

Top Labels in this Space