Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Latest update (maybe) breaks HTML emails with editor disabled

Posted on by 97

Hello, all!

Does anyone else have issues with HTML email sends that do not have the Dynamics editor enabled? Not including the short bit of code breaks emails completely in Win 11 Outlook. This is the piece of code to which I am referring:

<meta type="xrm/designer/setting" name="type" value="marketing-designer-content-editor-document">

Including that piece of code in the HTML head does make my email display about 98% correct. It's close enough I've just been dealing with it for a couple of months. I believe our previous environment update was done in August, but the issue could be from before that. Time is nebulous post-pandemic :D.

I've finally decided it's time to figure out what's going on. Anyone have any ideas?

  • RE: Latest update (maybe) breaks HTML emails with editor disabled

    Hi Cnquest ,

    Preview code is the final code, with all the changes added. It contains Outlook comments that provides workarounds for now issues in Outlook.

    This shouldn't be copied into HTML, I was suggesting just to inspect the part of code that's not working. It usually means that width is not calculated as expected or the code is not supported by Outlook. But I can't be sure until I see the code and the issues in Outlook, so this is the best I can suggest without seeing the code.

    If you copy Preview HTML, you have double processing that we do, processing on already processed code, and it could break the code.

    When HTML is not valid, or if the comments are not added as expected, the email will not be visible in Outlook. This is expected Outlook behavior.

    My suggestion is to create an SR so someone can look at the code and help you with your issues.

  • Cnquest Profile Picture
    Cnquest 97 on at
    RE: Latest update (maybe) breaks HTML emails with editor disabled

    Thank you for weighing in Jelena Rajkovic !

    I did also try an old version of our general email. Its an email whose layout was sent for over a year through Dynamics with no issue—and the issue is now present there as well.

    Below is a flow I tried to hopefully nail down what was happening—but it really just made me more confused:

    1. Sent the email template in question with editor enabled—the email looks perfect in Dynamics preview and sends/looks good (not exactly perfect, but good enough) - EXPECTED
    2. Went back into that same email, changed nothing, and inspected the preview with my browser. I took HTML from there, put it into Dynamics and sent it—the email looks perfect in Dynamics preview, but structure was broken in Outlook - EXPECTED (given that the editor not being enabled is breaking emails)
    3. Went back into Dynamics, added the editor code to the code from step 2 and resent—the email looks fine in Dynamics preview, but now doesn't even load in Outlook. - UNEXPECTED

    They all, of course, look perfect in gmail. So Dynamics is definitely doing something to the HTML that Outlook doesn't like...just not sure what yet! Fun, fun.

    From what I can tell using compare in Notepad++, Dynamics just adds a bunch of <tbody> elements. While I typically do not code these into my HTML emails, they seem to be present in both the versions taht are working and the broken version.

  • Suggested answer
    RE: Latest update (maybe) breaks HTML emails with editor disabled

    Hello,

    The meta tag enables Email Editor designer and enables processing on your custom emails: Show the toolbox and enable drag-and-drop editing
    T
    his means that there will be some changes done on the your code, but they are mostly done on the elements, buttons, text etc.

    The meta tag is removed in the final HTML sent, so that's not what's causing the issue. The issue is coming probably from the processing done on your code.
    You can inspect the final code on the Preview tab and see if you can find what the issue.

    Or you can share your code here or create an SR and we can help you find the cause of the issue.

    Hope this helps.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans