Has anyone been able to figure out how to prevent Marketo from modifying the code within email templates - specifically code within the HEAD area? We had a series of custom, responsive email templates designed for us. But none of them work properly across all major email clients since Marketo is stripping out necessary code that's used to properly render the emails in specific email clients (especially Outlook and mobile devices). Here are a few instances of Marketo completely rewriting the code or omitting it all together:
Our template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
Marketo rewrite:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
Our template:
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:AllowPNG/>
<o:PixelsPerInch>96</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]-->
Marketo rewrite: completely stripped out. Basically, Marketo is stripping out any conditional code that starts with "<!--[if gte mso 9]>"
I think this is yet another example on why there is a need for a more robust and capable email editor in Marketo.
Solved! Go to Solution.
This has been resolved now and the fix can be enabled for subscriptions ad-hoc. Please see the idea Dan mentioned above for more details. Email me directly at jcooperman@marketo.com if you'd like this enabled.
Happy Marketing!
This has been resolved now and the fix can be enabled for subscriptions ad-hoc. Please see the idea Dan mentioned above for more details. Email me directly at jcooperman@marketo.com if you'd like this enabled.
Happy Marketing!
I just finished testing... AND IT WORKS!!!! Thanks so much, Justin! BTW, it's not just the DOCTYPE that caused the issues, but Marketo was also stripping the xmlns definitions within the <HTML> tag, just after the DOCTYPE. These critical three lines of code are now also being preserved.
Hi Justin Cooperman,
Is this working for everyone or do we still need to have it enabled on our instance ?
-Greg