email_content error in API

Highlighted
Visitor

email_content error in API

Hi,

 

has anyone seen error

[error_key] => json.invalid.value.no_script_tags

[error_message] => #/email_content: Field does not support script content. 

 

when sending HTML email through API?

 

My HTML code doesn't have any javascripts in it if that' what they refer to. My code works fine with really simple hello world HTML code, but as soon as I get to the real one, getting this error.

46 REPLIES 46
Highlighted
Employee

Re: email_content error in API

Hi,

 

The error you're getting generally points to some word in the html email that is disallowed or not understood.  It's hard to say what that might be without seeing the html.  In the absence of script tags, I would look for deprecated tags or anything that might not be current html.

 

Segmenting the email into portions, and testing those portions separately as their own html emails, can help narrow down the issue.

 

If you want to post your email with identifying information redacted, we might be able to take a look and help troubleshoot.

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Visitor

Re: email_content error in API

Thanks

 

Finally we got it through, problem was with some styles like 

offset:0 and mso-*** 

 

I wish there was a bit more detailed error message or some tool to test html, would save lots of time! 

 

Highlighted
Moderator

Re: email_content error in API

Thanks for the feedback and glad you got passed it.  Our filtering is mostly to ensure that potentially harmful code, scripting that isn't supported by email clients and other items that could cuase problems for our customers are not accepted.  However, like a filtering, I'm sure that there are some valid items that we're catching.

 

Is there any way you can send over what you tried to submit to our support team so we can take a look?  If we are being too restrictive, we will work to fix any of those problems we can find.  Your help is greatly appreciated.

 

Also, I'll bring the idea of an HTML validator and better documentation to our email teams.  We're working on enhancing our custom code experience and this is a great time to bring those types of ideas to them. 

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Occasional Participant

Re: email_content error in API

This issue persists from what I can tell. I'm getting the same error as above, with no script tags in place. You can find the full contents of the email at http://cl.ly/code/1l1s410k1Y0W . Any help would be much appreciated. 

Highlighted
Moderator

Re: email_content error in API

Thanks for the report.  We are using an inclusive filter when checking content so we do assume this will continue to come up over time as we find new browser extensions or some HTML 5.0/CSS 3.0 tags that are newer or changed.  We'll take a look at this and update the filters.

 

Thanks again!

Dave Berard
Senior Product Manager, Constant Contact
Highlighted
Occasional Participant

Re: email_content error in API

Having the same issue. http://www.whrobinsoninc.com/amusementtoday/newsletter_display.php?date=2013-07-29 Been a long day, got a lot of people coming down on me to get this working. Your error messages, are, well, crappy. If there is a bad tag, you should be indicating the line number and an excerpt of the bad code. I expected better from the premier email company. Please fix this before I find a better partner. FYI, Ran into a generic message that, if I had not Googled it, would never have known it meant that the config needed a physical address for the company. All I got out of it was I needed an address, which under the circumstances would normally indicate an email address.
Highlighted
Employee

Re: email_content error in API

Hi,

 

I'm sorry for the frustration this has caused.  I will forward the feedback onto our engineering teams--both the suggestion for the line number and excerpt when the email content error is thrown, and to include the word 'physical' when it is a physical address that's missing.  Thank you for the feedback.

 

Best Regards,

Shannon W.

API Support Specialist

Highlighted
Occasional Participant

Re: email_content error in API

Any suggestions on how to get around the original error? "email_content: Field does not support script content." Our code (with no script tags): http://www.whrobinsoninc.com/amusementtoday/newsletter_display.php?date=2013-07-29
Highlighted
Occasional Visitor

Re: email_content error in API

Unfortunately, I have to agree. Too much more waiting time and we'll have to make a choice to make a change. The hang-up is that we have close to 60,000 contacts and about 100 groups...that'll be one large export.

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured