We're making it easier to get around Constant Contact with a brand new left navigation. Not all accounts have that change yet, so if your navigation looks different from our articles, that's why–but everything from the top can now be found on the left!

Email and Digital Marketing
How can we help you?
Search our help articles, video tutorials, and quickstart guides

You've got this. You've got us. Search our Knowledge Base to quickly find answers to your questions.

Errors in a custom code email

Article: 000033242
Updated: December 22, 2023

Possible errors and warnings in a custom HTML code email and how to resolve them

When creating an email in our Custom Code editor, we automatically check your HTML for potential issues that could prevent your email from sending or from displaying the way you intend. While some of these issues are minor and you can still send your email without resolving them, others will prevent you from sending until they’re fixed.

Custom code email with errors found

 

Errors that prevent you from sending

Certain errors found in your HTML require you to fix them before you can send your email. You’ll have the option for us to fix them for you, but you should preview your email before sending to make sure everything displays as intended. These issues will appear at the top of the email with a red X icon Red error icon.

 

Open pixel missing

In order to track email opens, we use a transparent, single-pixel image embedded in your emails that tells when a contact has or has not opened a specific email. If the Tracking Image tag has been deleted from the code, you’ll receive an error and will need to reinsert it by clicking Insert > Tracking Image.

 

Multiple open pixels found

If more than one Tracking Image tag is found in your HTML, you’ll also receive an error and will need to delete any extra instances of [[trackingImage]] until you only have one in your code.

 

Unsupported HTML tags or parameters

If your HTML includes a tag or parameter that is not valid (for example, if you have a typo in the tag name) or a tag that we don't allow either for security reasons or because most email clients don't support it, you’ll receive an error that it’s not a supported tag. You’ll need to either fix the tag or delete it from the code before you can send the email. If you’re trying to include personalized contact details in your email, use this list of personalization tags.

 

Email too large

The maximum email size is 400 KB. If your email is larger than that, you’ll need to remove some content before you can send the email. Keeping your email short also helps to increase engagement with your contacts.

 

Illegal characters

For security reasons, we don’t allow the following combinations of characters:
  • [#
  • ${
  • <@

If any of these are found in your HTML, you’ll need to remove them from the code.

 

Errors that don’t prevent you from sending

Some issues that are found aren’t a huge deal and you can send your email without fixing them, but we recommend you review them before continuing. These issues will appear at the top of the email with a blue information icon Yellow warning icon.

 

Unsupported HTML attributes

If you have an invalid attribute in your HTML (for example, if there’s a typo in the attribute name) or you have proprietary attributes from programs like DreamWeaver, you’ll receive a warning that it’s not a supported attribute. You can choose to fix it or delete it from the code, otherwise it’ll be stripped out of the email when it’s sent. We recommend sending a test of your email to make sure it displays properly.

 

Bad HTML formatting 

Some issues with your code will also result in a warning, such as missing closing brackets or quotes. To ensure your email displays the way you intend, all tags should be escaped (< >) and paired with an open or close tag. If any of these issues are found, they’ll be stripped out of the email when it’s sent.

 

List of supported HTML tags

TagDescription
<!DOCTYPE>Document type
<a>Defines a hyperlink
<abbr>Abbreviation
<acronym>Acronym
<address>Contact info for document owner
<audio>Embedded sound
<b>Bold text
<big>Big text
<blockquote>Quote from another source
<body>Document body
<br>Line break
<center>Center text
<cite>Title of work
<code>Defines computer code
<colgroup>Column group
<dd>description of a term in a description list
<del>Deleted text
<dfn>Term defined within content
<div>Document section
<dl>Description list
<dt>Term in a description list
<em>Emphasized text
<h1>Document header 1
<h2>Document header 2
<h3>Document header 3
<h4>Document header 4
<h5>Document header 5
<h6>Document header 6
<head>Contains document metadata
<hr>Horizontal rule
<html>Defines root of document HTML
<i>Italicized text
<id>Unique id for an HTML element
<img>Image
<ins>Text inserted into document
<kbd>Keyboard input
<li>List item
<link>External link
<marquee>Scrolling text
<meta>Defines document metadata
<ol>Ordered list
<p>Paragraph
<pre>Preformatted text
<samp>Sample computer program output
<small>Small text
<span>Defines a section
<strong>Bold text
<style>Defines style information
<sub>Subscript text
<sup>Superscript text
<table>Table
<tbody>Table body content
<td>Table cell
<tfoot>Table footer
<thead>Table header
<title>Document title
<th>Table header cell
<tr>Table row
<tt>Teletype text
<u>Underlined text
<ul>Unordered list
<var>Variable
<video>Embedded video


Questions?

Ask the Community

Did this article answer your question?


Constant Contact Logo

Copyright © 2025 · All Rights Reserved · Constant Contact · Privacy Center