Between 9pm - 11pm ET this Sat (9/18), we will be doing routine network maintenance. Please avoid usage of our API during this time frame - including any scheduled sync jobs. Thank you in advance for your patience.

not a valid From email address when trying to crate campaign

foreveryhome
Regular Participant

not a valid From email address when trying to crate campaign

 I searched and searched but nothing came up.


I am trying to make a campaign and have gotten stuck with this error "Error 400: not a valid From email address"


I have both the from and reply email elements as per the documentation. I have redacted the account and email info:





<FromEmail>
<Email id="http://api.constantcontact.com/ws/customers/redacted/emailaddresses/2">
<link xmlns="http://www.w3.org/2005/Atom" href="http://api.constantcontact.com/ws/customers/redacted/emailaddresses/2" rel="self" />
</Email>
<EmailAddress>redacted@redacted.net</EmailAddress>
</FromEmail>
<ReplyToEmail>
<Email id="http://api.constantcontact.com/ws/customers/redacted/emailaddresses/2">
<link xmlns="http://www.w3.org/2005/Atom" href="http://api.constantcontact.com/ws/customers/redacted/emailaddresses/2" rel="self" />
</Email>
<EmailAddress>redacted@redacted.net</EmailAddress>
</ReplyToEmail>



the email and id match what is listed in my account settings. im at a complete loss of what i am doing wrong. I have read the API documentation for creating a campaign at least 10 times.



5 REPLIES 5
bsoder
Employee

Hello,



The From and ReplyTo email addresses have to be valid confirmed email addresses. You can get a list of your valid confirmed email address id's by doing a GET on the Account Settings Email Collection. You would then take one of the verified contact id's and put that in the FromEmail node.



Let me know if you are still getting the error after doing that.



Regards,

Benjamin Soder
NOC Analyst
Constant Contact
foreveryhome
Regular Participant

 Thanks for responding. I assume email validation is done int the "my settings" -> "verify address" area. both emails show as validated and i have tried creating a campaign with both. i have tried using ids 1 and 2.  those ids work and generate both the FromEmail and ReplyToEmail elements in my post method. However, neither address id 1 or 2 are able to get past the error.

bsoder
Employee

Hi,



Is it possible to send your code to the Webservices Support team so that I could take a look at it and see what is going on?



Regards

Benjamin Soder
NOC Analyst
Constant Contact
foreveryhome
Regular Participant

 I sent this in Friday morning. How long does it usually take for them to respond?


Edit: ok they just responded with a simple answer that i should have noticed sooner. My mistake was leaving the settings protion of the url out in my email elements id attribute


Tnaks you for pointing that out

bsoder
Employee

Hello,



I apologize for the inconvenience, I did respond to the email we received.  I believe that we have solved the issue.  If you do run into any issues with this please let me know either here or by responding to the ticket that we created.



Thanks,

Benjamin Soder
NOC Analyst
Constant Contact
Developer Portal

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

Visit Page