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.

Adding a contact and sending confirmation email via opt-in ?


Adding a contact and sending confirmation email via opt-in ?



I'm trying to update my CC signup form to allow for contacts to NOT be added until they have received a confirmation email via the "Confirmed Opt-In" toggle that is now set to ON in my account.


I have the following code in place:


$strList = '';
$contactObj = new Contact();
$myContacts = $ConstantContact->getContacts();

$contactObj->lists = array($strList);
$contactObj->emailAddress = $strEmail;
$contactObj->optInSource = 'ACTION_BY_CONTACT';
$Contact = $ConstantContact->addContact($contactObj);


This does not send the confirmation email when the contact is added, and the contact appears to be automatically added to the list in question, before recieving confirmation opt in from them.


I have also tried the value of "ACTION_BY_VISITOR" in the "optInSource" field, with the same results.


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