Skip to main content

Notifications

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

Unable to use VML in custom HTML emails

Posted on by 168
So the only reason we have to use painful VML markup in emails is because of Microsoft Outlook. But get this, try and use it in a Microsoft Dynamics email and it won't let you. In a custom email at least.
Took me much headbanging but realised when you copy custom HTML into Dynamics, this part:
 
 
Gets changed to a plain old 
 
 
Which effectively renders any VML useless. To recreate:
 
1. Create a simple email with a rounded button using the editor (Outlook requires VML to render rounded buttons)
2. Get the HTML (note, getting the HTML from within the editor will not work here, as that is not the final rendered HTML. Instead you have to get the final rendered HTML from a field called msdyncrm_emailbody
3. Paste that HTML back into the email editor
4. Do a Litmus preview using an Outlook client > that button no longer shows. And if you look at the msdyncrm_emailbody again you see the behaviour I noted above i.e. the html tag getting altered.
 
I will now seek a solution (after seeking VML therapy) unless anyone knows a fix?

Note: this forum also doesn't allow me to post any code, even when using the 'insert code snippet' which is why I added the html above as images.
  • jwcpc Profile Picture
    jwcpc 168 on at
    Unable to use VML in custom HTML emails
    Hi Dengliang Li - thanks for the response. But the steps you have shown is not recreating the issue.
     
    The issue is with custom HTML templates, if you take the HTML from the 'Email body' field > copy it back into the email editor > look at the email body field > you'll then see those attributes are stripped out of the HTML tag.
     
    Just to be clear, this isn't our current workflow. It's just to demonstrate how Dynamics alters custom HTML templates, which means if you are taking HTML from any external source there's a good chance it won't render properly on Outlook.
     
    It also means if you want to use the HTML in other platforms, you need to be sure to update the html tag.
  • Suggested answer
    Dengliang Li Profile Picture
    Dengliang Li Microsoft Employee on at
    Unable to use VML in custom HTML emails
    Hi,
     
    I am using the Customer Insights - Journeys trial version without outbound marketing module.

    After I add rounded buttons in my real time marketing emails, the VML markup is automatically added in the email body field.

    I can also see the button in outlook client.
     
    Therefore, it is recommended that you try using the real-time marketing emails.
     
    Best Regards,
    Dengliang Li
     

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,064 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans