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.

Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

SOLVED
Go to solution
Highlighted
Visitor

Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

I have a Drupal 7 site which uses the Constant Contact Module (7.x-3.6) to sign people up on registration. It works fine out of the box, but I'd like to use a different 'Welcome' message than our default, so I've changed the action_type to 'ACTION_BY_CUSTOMER' to supress the default 'Welcome' message. However, I now get a 403 error on registration and no sign up occurs. I've verfied the XML differs only by the <OptInSource> tag, and I've added a few more debug statements, but I'm not clear on where the error is occuring.

 

After submitting, I compared the object used for submission under both successful and unsuccessful conditiona and it is confirmed to be alike in all ways except for action_type and response attributes.

 

Any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Employee

Re: Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

Hi,

 

There is a scenario where you will get a 403 error when trying to add a contact when using action by customer instead of action by contact.  If the contact was previously opted out of Constant Contact mailings in the account, and you try to add them back with action by customer, a 403 will occur.

 

I would check to see if the email address you are entering is on the Do Not Mail list in your account.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

2 REPLIES 2
Highlighted
Employee

Re: Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

Hi,

 

There is a scenario where you will get a 403 error when trying to add a contact when using action by customer instead of action by contact.  If the contact was previously opted out of Constant Contact mailings in the account, and you try to add them back with action by customer, a 403 will occur.

 

I would check to see if the email address you are entering is on the Do Not Mail list in your account.

 

Best Regards,

Shannon W.

API Support Specialist

View solution in original post

Highlighted
Visitor

Re: Drupal Error - 403 when adding contact via ACTION_BY_CUSTOMER

That was it. When deleting a user from Drupal (as I was doing to re-register with the same e-mail) it was adding that e-mail to the Do Not Mail list.

 

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