addOrUpdateContact code sample not triggering the autoresponder welcome email

SOLVED
Highlighted
Occasional Contributor

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

Accepted Solutions
Highlighted
Occasional Contributor

Re: addOrUpdateContact code sample not triggering the autoresponder welcome email

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
Highlighted
Occasional Contributor

Re: addOrUpdateContact code sample not triggering the autoresponder welcome email

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

Highlighted
Occasional Visitor

Re: addOrUpdateContact code sample not triggering the autoresponder welcome email

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

Highlighted
Moderator

Re: addOrUpdateContact code sample not triggering the autoresponder welcome email

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

Constant Contact Would Like To Hear From You!

We want to hear from customers like you about your favorite features and how they have helped your business or organization. Tell us by answering a few questions in...

Read More
Featured