Adding Code Script into an email - Validation error Email Message has script tags | Community
Skip to main content
April 9, 2014
Solved

Adding Code Script into an email - Validation error Email Message has script tags

  • April 9, 2014
  • 4 replies
  • 8254 views
Hi all,

I am trying to send out an email containing a piece of code to customers. I want it to look like this: <script src="{{my.Snippet:default=edit me}}"> </script>

I have created the "<" to be "&lt;" in HTML, however it is still doesn't allow me to validate the email.

It says that the Email Message has script tags.

Can someone advise?

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

I was successfully able to do this using this: <code>&lt;script src="//{{lead.Snippet Code:default=edit me}}"&gt;&lt;/script&gt;</code> !

4 replies

Gerard_Donnell4
New Participant
February 19, 2016

Hi Alison,

Could you explain in a bit more detail about what exactly the code was that you inserted into the email? Was it javascript? Do you have an example of the final email?

Thank you for your time.

Kind regards,

Gerard

SanfordWhiteman
New Participant
February 19, 2016

Gerard, what Allison is doing here is "inserting code" in the sense that I could "insert code" into this Community post.  Not runnable code but displayable code.  Imagine if you were sending out a newsletter with JavaScript tips.  The email isn't running the code, but it is setting off the code with special formatting.

Accepted solution
August 7, 2015

I was successfully able to do this using this: <code>&lt;script src="//{{lead.Snippet Code:default=edit me}}"&gt;&lt;/script&gt;</code> !

Ulyana_Avetisov
New Participant
February 23, 2016

Hey Allison,

You created a snippet with the body of the script?

I tried putting the original script in <code> like your above example but MKTO wouldn't approve the email.

SanfordWhiteman
New Participant
February 23, 2016

Did you HTML-encode the < and >?

April 29, 2014
There is no email program that will allow this? Support notified me that if I use ASCII art in the email it should work. Why are you not allowed to use this?

Thank you!
Josh_Hill13
New Participant
April 9, 2014
You are not allowed to put scripts into emails. No email program will permit this.

You should send the lead to a landing page instead.