SOLVED

Export html of final email - not with tokens & variables

Go to solution
Highlighted

Export html of final email - not with tokens & variables

I have an email that is quite complex with lots of modules, variables and also uses program token for content. I would like to export the html of a final version of this email, as it will render. However, it doesn't seem possible, as the code edit or html export option only offers the template/base email code with the variables defined. And trying to preview the email doesn't allow me to grab the source either, neither is this possible if sending a test email or through a smart campaign with the "view as web page" link added (get error: Cannot get email content- Customer does not belong to any POD). Does anyone know how I can grab the final code of an email, without having to rebuild it and replace all variables and tokens with actual values? It seems odd that something as basic as this isn't possible, but perhaps someone has a workaround here?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Export html of final email - not with tokens & variables

Marketo support has confirmed that the view source option no longer works due a change in the latest release with regards to the mkt-tok, and the fact that it no longer sticks in the url of the page when viewing an email as a web page.

The mkt_tok is still there, but it doesn't stay in the url path of the browser anymore. You can spot it for a split second and then it's gone. This is what support mentioned about this change: "... we confirmed with engineering that this is due to the release and a byproduct of an intended and necessary change for security reasons. The removal of the mkt_tok, was so that the end user "cannot bookmark, forward, or let search engine cache it" according to engineering. Since that value can be used for cookie-ing with Munchkin, it was theoretically possible for the URL to get indexed on a search engine. Meaning anyone who clicked the link would get cookied as that person."

They also confirmed that the approach going forward of getting to the code through a browser would be to save it as a file - view source will not work anymore because of the "missing" token. They did however provide another workaround to mimic the view source code approach I used before, and it works, although requires a bit of cutting and pasting:

  1. Send yourself a test email with the "view as web page" link included.
  2. In the email, right-click this url and copy it.
  3. In the browser, paste "view-source:your-copied-url-from-the-email" into the path.
  4. On that page you will see the complete url with the actual token - copy the entire url.
  5. In the browser, paste "view-source:the-entire-token-url" into the path.
  6. There's the code.

View solution in original post

17 REPLIES 17
Highlighted
Level 10 - Community Moderator

Re: Export html of final email - not with tokens & variables

neither is this possible if sending a test email or through a smart campaign with the "view as web page" link added (get error: Cannot get email content- Customer does not belong to any POD).

You'll need to fix this underlying problem with your View As Web Page -- then there's no reason that VAWP would not work for your described requirement.

Are you using a branding domain? What's an example VAWP URL when you send a real (not sample) email?

Highlighted

Re: Export html of final email - not with tokens & variables

Thank you, Sanford. That's what I thought - that view as web page would allow me to do this. Can also confirm that we are using a branding domain. I've logged a ticket with support and they are looking into it now. Grabbing the code from the view as a web page is how I've done it before, and nothing in our setup has changed, so I suspect there is a bug somewhere following the latest release.

Highlighted

Re: Export html of final email - not with tokens & variables

Hey Elin,

I'm getting the same error message when I try to save an email from the "view as web page" link. I also tried to download my email with the Marketo drop down feature but then my tokens don't populate. I looked it up in the community and found a past conversation where this was issue was called a "bug" by Marketo. View as Webpage does not work: "Customer does not belong to any POD" I just submitted a support ticket for this issue at level P1 because I need to get approval for emails this week and I cannot provide anyone a full working email to review. I would advise to submit a ticket as well which will help raise a flag to this issue.

Highlighted

Re: Export html of final email - not with tokens & variables

Thanks, Tiffany. I've also logged a support ticket, they are looking into it now. I'll update this post when issue is resolved, or a workaround is found.

Highlighted
Level 10 - Community Moderator

Re: Export html of final email - not with tokens & variables

Does the VAWP work at all (in the browser)? If so you should be able to view-source and Save. Can't see how a browser would be blocking one and not the other.

Re: Export html of final email - not with tokens & variables

It works when I view the email after clicking the link but if I'm trying to share it after its been saved it does not work. It worked in the past and it worked last week, but for some reason today it's not working. It has been the way I've saved all my email in HTML instead of using the Marketo "Download HTML" feature. I've asked another colleague of mine to do the same and send me the HTML email he saved and I see the same error message that everyone else is getting.

Highlighted
Level 10 - Community Moderator

Re: Export html of final email - not with tokens & variables

... after it's been saved it does not work.

If it's actually saved to an offline HTML file, there's no way for it not to work. I'm confused about what constitutes "saving" in this case.

Highlighted

Re: Export html of final email - not with tokens & variables

Yes, it's also very confusing me as well. I've viewed it in a browser and then right clicked to save as. If I took that file to attached to an email I'm going to send to someone else. That recipient cannot open the HTML file. If I opened my saved filed it looks fine and seems to work, but that's not the case when you're sharing the file. I have not changed anything in the way I usually do when saving an email. Not much more I can explain about why it's not working. Bit of a mystery.

Highlighted

Re: Export html of final email - not with tokens & variables

Interesting.. If I view in browser, and save the html instead of trying to view source (I use chrome), then I can get to the code when opening my saved file. I didn't even think of that option. Thank you, Sanford! Still, it's very strange that view source doesn't work when saving does. I'll report that finding to the support team as well.