Email Scheduling
GET the HTML Preview of an Email Campaign Activity
Use this method to get the HTML preview of an email campaign activity. The HTML preview allows you to verify how the email campaign activity will look before you send it to contacts.
Custom code emails (format_type 5) use the Constant Contact account owner's contact information to process contact, custom field, and account variables in the preview.
This method returns the HTML preview encoded as a JSON string. You will need to decode the string before you can use it as valid HTML.
get/emails/activities/{campaign_activity_id}/previews
Path parameters
campaign_activity_idstring uuid required
The unique ID for an email campaign activity.
Response
Request successful.
Example response
{
"campaign_activity_id": "4c08372c-957a-48b5-bc45-72c7f00796cd",
"from_email": "jdodge@constantconatct.com",
"from_name": "Jake Dodge",
"preheader": "You don't want to miss this.",
"preview_html_content": "<html><body> <a href=\\\"http://www.constantcontact.com\\\">Visit ConstantContact.com!</a> </body></html>",
"preview_text_content": "Email Content",
"reply_to_email": "jdodge@constantcontact.com",
"subject": "Informed Daily Digest"
}