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.

Required EMail format when using API?

Highlighted
Occasional Contributor

Required EMail format when using API?

What are the requirements for valid email formats when adding/updating Contacts via the .NET API?   The most recent addressing on this issue that I found is in this thread:

https://community.constantcontact.com/t5/Developer-Support-ask-questions/Supported-Email-format/m-p/...

 

that thread links to this FAQ entry on email formatting:

https://knowledgebase.constantcontact.com/articles/KnowledgeBase/5297-format-a-file-to-import-contac...

 

I've been using a well tested RegEx expression to validate all our email address strings prior to attempting to add contacts to lists via the .NET API.      Still, I get exceptions triggered by 'bad email format'.  When I examine the email that triggered the exception, it appears to be within the guidelines laid out in the FAQ. 

 

Example of Email string triggering an exception:    X0Znuaavwebrw0330@marauder.millersville

I realize that email address IS bogus....but I do not see what part of it fails the guidelines in the FAQ doc.

 

So, are there more recent guidelines some where?  Or maybe an algorithm that never fails that somebody wants to share?   Thank you.

2 REPLIES 2
Highlighted
Regular Advisor

Re: Required EMail format when using API?

Hello,

 

Something extra to note is that our validator will pass only common, simple TLDs.  The email example you provided probably did not pass validation because there is no TLD called "millersville".

 

Hope that answers your questions.

 

Regards,

 

Andrew B.

Constant Contact

API Support

Highlighted
Frequent Visitor

Re: Required EMail format when using API?

I am running into the same issue.  I have tried pushing emails with a .xxx tld and it doesn't work. I have also been referring to the  ICANN list of tlds and some of those do not work either. Do you have a list of TLDs that CC considers valid? Thanks!

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
Featured