The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

create campaign


create campaign

When testing using the API to create campaigns (using .net wrapper) I'm running into a problem with validation.


given this json request:

"email_content":"<html><body><h1>this is the email content<\/h1><\/body><\/html>",
"from_name":"IHDS School",
"address_line_1":"7040 Avenida Encinas",
"forward_email_link_text":"Forward this email",
"organization_name":"International Human Design School",
"subscribe_link_text":"Subscribe to Our Newsletter!"
"subject":"my test campaign",
"text_content":"this is the content"

 yeilds the following error 

http.status.bad_request:Please enter a valid email address.

 The only email address present is the 'from_email' property and it is a verified address being used for all other campaigns (that we currently create through the UI)


any idea on why this is failing?



Honored Contributor

Re: create campaign



In this case the issue is that your request JSON and campaign object has no value set for the reply_to_email field. With the .NET wrapper you can correct this with the following code:

campaignObject.ReplyToEmail = "";

 As long as the reply-to email is set before you attempt to create the campaign, the API call should be successful. This is happening because the reply-to email field is a required field.


If you're still having any difficulty after adding this info to the campaign, please let me know!



Elijah G.
API Support Engineer
Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More