HS injected code on custom email modules break display in Outlook

Hi

When creating custom dnd modules HubSpot injects code into the final html, this is currently breaking emails on OL 365 Windows 10 where the email gets truncated.

I am generating my HTML from MJML, if I take the full raw HTML and test it it all displays fine. But when using the dnd tag the extra HTML means half of the email gets cut off (see attached screenshots).

It’s incredibly frustrating that HS has to inject additional code to an email, the whole idea of custom email templates should surely be so you have full control of the html. It means what is a tried and tested framework (MJML) to display across clients can’t really be used in HubSpot. Has anybody else encountered this, or have any suggestions

Hey @JonWright,

Welcome! :tada:

Thanks for all the details and screenshots. From past cases, I believe this could be an issue caused by Outlook’s lack of ability to render HTML.

Heres a KB article that may be able to point you in the right direction:

Tagging in a few folks from the community:

Hey @evaldas, @CarolinaDeMares, @TomM2 – do you have any suggestions for @JonWright on this?

Thank you!!

Sam, Community Manager

Hi @JonWright

I’ve seen similar issues with HubSpot adding extra markup to custom email templates. Since your MJML HTML works fine on its own, it might be worth checking whether the additional code generated by the DnD area is causing the email truncation in Outlook.

You could try using a coded email template without the DnD area to see if that fixes the issue. Also, testing the final HTML generated by HubSpot in Outlook may help identify what’s causing the problem.

I hope this helps you out. Please mark it as Solution Accepted and Like to help another Community member.

Thanks!