We all started somewhere! Share your experience on the Get Advice: Let's Get Started Sweepstakes thread and be entered to win a $100 credit on your Constant Contact account.

addOrUpdateContact code sample not triggering the autoresponder welcome email

SOLVED
Go to solution
SaroK5
Frequent Participant

addOrUpdateContact code sample not triggering the autoresponder welcome email

Just installed the github php sdk 3-0-0 alpha. 

I tried the example 'addOrUpdateContact' and tried to add a contact to a list. Everything seems to be working fine and with no errors. The contact gets added to the list but the problem is;

The autoresponder welcome email that I have had set up for that specific list didn't get sent. 

Although, when I use the default sign up form, created within the constant contact ui, the autoresponder works fine.

 

I 've checked the contact's information and it says "added by you" which is the source of the problem I suppose. But i don't understand why since the addContacts function's 3rd parameter is set to true;

 

$returnContact = $cc->contactService->addContact(ACCESS_TOKEN, $contact, true);

 

 

I also get the following error which I don't know what it is and how it affects the outcome;

Warning: count(): Parameter must be an array or an object that implements Countable in \constant_contact\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 67

 

1 ACCEPTED SOLUTION
SaroK5
Frequent Participant

FIXED 

This was happening just because I was testing the app on my local machine from

http://localhost/...

 I uploaded to the live server and it worked just fine

View solution in original post

3 REPLIES 3
SaroK5
Frequent Participant

FIXED 

This was happening just because I was testing the app on my local machine from

http://localhost/...

 I uploaded to the live server and it worked just fine

View solution in original post

user7498
Participant

Hi!

I need a working example to make an HTML form that adds contact to a mailing list. 

 

Can you please help me?

 

Thanks!

Francisco

Hi @user7498,

 

Thank you for reaching out to Constant Contact's API Support.

 

Have you checked out the sample code that we provide for our libraries? Several of them include sign-up forms. Sample Code

 

You may also benefit from logging in to your Constant Contact account and using the sign-up forms that we provide there.


Regards,
Jimmy D.
Tier II API Support Engineer
Developer Portal

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

Visit Page