Tokens vs 'view as webpage' email template | Community
Skip to main content
Marit_Rossing
Level 3
February 8, 2016
Solved

Tokens vs 'view as webpage' email template

  • February 8, 2016
  • 2 replies
  • 7657 views

Currently I am working on new email templates. Since it is best practice to include a 'view as webpage' link, we will finally start using this within the new templates. But now I have a problem with this.

Once a lead is created, fields like 'business unit address', 'social media links', 'contact page' and 'unsubscribe page' are filled with HTML so they fit with the email template. Every lead gets different links to different pages depending on their country and language. Within the email template we use tokens to populate the right business unit address, social media links, contact page and unsubscribe page. This all works when testing and sending emails. The HTML is transferred into the icons etc

But..

We include a 'view as webpage' link in the email. If you open this webpage, you will see the actual HTML and not the icons etc..

Any solution for this?

Thanks

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 Grégoire_Miche2

Hi again Marit,

The functionality only works when you send the email through "send sample" or "send email" flow step.

-Greg

2 replies

Grégoire_Miche2
Level 10
February 8, 2016

Hi Marit,

How is your "view as web page" set up ? the {{system.viewAsWebpageLink}} token should be used as the href value in the <a> tag.

Typically

If you cannot read this email <a href="{{system.viewAsWebpageLink}}">Click here</a>

-Greg

Marit_Rossing
Level 3
February 8, 2016

Hi Greg,

Thanks!

Yes it is build this way! <a href="{{system.viewAsWebpageLink}}" style="color: #00bae9; text-decoration: none;">View as a webpage</a>

Grégoire_Miche2
Grégoire_Miche2Accepted solution
Level 10
February 8, 2016

Hi again Marit,

The functionality only works when you send the email through "send sample" or "send email" flow step.

-Greg

Justin_Cooperm2
Level 10
September 15, 2016

Email Scripts should execute in the web viewer. If they don't, it's a bug.

Tokens will also be replaced in the web viewer, however they currently they will all be HTML-encoded. We have a ticket open to bypass HTML-encoding tokens for fields that have been set that way in Field Management HTML Encoding Settings.

SanfordWhiteman
Level 10
September 15, 2016

Yep, there's a case open that Jep C is watching. Never worked for me, even if it was intended to.