Fix code alterations that occur when sending email template samples | Community
Skip to main content
Casey_Grimes2
New Participant
December 7, 2018
New

Fix code alterations that occur when sending email template samples

  • December 7, 2018
  • 2 replies
  • 1960 views

(Cheers to @Matthew Fellows for reminding me about this one!)

When using the "Send Sample" functionality directly from an email template to test code, several switches happen which actually break the email:

  • There's a doctype switch which occurs on the email itself: the email will go from <!doctype html> to <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "w3.org/TR/html4/loose.dtd">
  • Any meta tags or variables defined in the template are removed.
  • Any parent container tags for mktoModules are removed. That is to say, if you have an email module defined as  <table class="mktoModule" [...]><tr><td></td></tr></table> it will only render everything from the table row onwards.

This results in the email usually going lopsided and looking bad. While the recommended solution here is usually to create a test email, this is very confusing for email template developers who don't have a ton of Marketo experience. Can this behavior be changed to simply send the code inside the template itself with the variable defaults/mktoAddByDefault values honored?

2 replies

Casey_Grimes2
New Participant
February 28, 2020

Update: As of 2020-02-28, this behavior no longer occurs! Sending samples of templates actually does exactly what this ticket suggests—it sends the code itself as expected with all mktoAddByDefault modules. Thanks, whoever fixed this.

New Participant
February 4, 2020
No text available