Text version of emails not token-friendly | Community
Skip to main content
November 9, 2016
Solved

Text version of emails not token-friendly

  • November 9, 2016
  • 2 replies
  • 6616 views

Whenever we use tokens in our emails and I create a text version (we have Email Editor 2.0 enabled), the token works fine in the HTML email, but shows up as a bunch of code in the text version.

Is anyone else having this problem? Does anyone have any solutions?

Thanks,

Nick

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Josh_Hill13

This is the expected behavior.

At runtime (send time) the HTML is not down-shifted into a text representation. Nor, in a wide range of cases, would you want it to be. Try running textContent() on a link that wraps text, for example.  You'll get all the inner text, including carriage returns, and none of the HTML-based formatting, like margins and paragraph containers, that stops words from running together. It's not a conversion that's safe to make without hand-editing (you can still edit the text version of an email, but you wouldn't ever be able to edit the automatic text-ifying of an HTML token).


So the quick fix is to have a Text token that has similar content....if you don't want to fix the code or script anything.

2 replies

November 10, 2016

Hi Nick,

Go to Admin > Email > Edit Text Editor Settings > Root Block Elements > Email / Snippet Editor and you probably want "None".

New Participant
November 11, 2016

Hi Nick and Tony,

We are having the same issues. Updating the Root Block Elements>Email / Snippet Editor to "None" didn't solve it. Bummer. Any other suggestions?

Thanks!

SanfordWhiteman
New Participant
November 11, 2016

What result are you guys expecting from a Rich Text (i.e. HTML) token in a non-HTML email?

Josh_Hill13
New Participant
November 10, 2016

are you using a rich text token or text only? Are you saying you created a text version of the email and the token?

When you test it, do you run a sample or a live email to your seed list?

November 10, 2016

Hi Josh,

The tokens that seem to be the issue are rich text tokens. And I am referring to the text version of the email. It will copy automatically from HTML, but the tokens will show up as HTML code in both the Marketo previewer and in the test email I send myself.