cancel
Showing results for 
Search instead for 
Did you mean: 

Substituting content in email body from the API

Highlighted
Frequent Visitor

Substituting content in email body from the API

We have an informational feed that gets sent out to subscribers.  What we would like is to create an email body in the website editor, then have the API inject information content into a paragraph in the body and send that out to contact lists.

 

It seems that most of the double-bracket substitutions are contact-oriented, and for short words & phrases.  What is the best way to substitute campaign-oriented multiline content into an email when a campaign gets sent out, all via the API?

1 REPLY
Moderator

Re: Substituting content in email body from the API

Hi @HowardG197,

 

Thank you for reaching out to Constant Contact's API Support.

 

If you use an email template from our website UI you will not be able to use the API to edit or add content to that email template. In order to use the API to edit an email you will want to use what we call an custom code email. That is an email that uses your own HTML. You can read our documentation for this here.


Regards,
Jimmy D.
Tier II API Support Engineer
Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!