Fix code alterations that occur when sending email template samples

Fix code alterations that occur when sending email template samples

(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" "">
  • 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?

Community Manager
Status changed to: Open Ideas
Level 10

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.