listSubscribe with previously unsubscribed address

363 views
Skip to first unread message

Andrea Pinazzi

unread,
May 6, 2013, 11:04:25 AM5/6/13
to mailchimp-...@googlegroups.com
Hi all,

I'd like to show a checkbox in the user profile page of my site to allow my users to easily subscribe\unsubscribe from our mailing list.

on form post I use the checkbox value to  call listSubscribe (or listUnsubscribe) if needed and also I've set up a webhook to sync with user subscription\unsubscription via email. How will listSubscribe behave with people unsubscribing and then willing to subscribe again? will It error as it does in the web panel administration of the list?

(I'm using MCAPI php v. 1.3)

Thanks

jesse

unread,
May 6, 2013, 11:12:24 AM5/6/13
to mailchimp-...@googlegroups.com
It will work, but don't take my word for it, go test it so you see how your code's actually going to work.


jesse

hmap....@gmail.com

unread,
May 7, 2013, 5:22:52 AM5/7/13
to mailchimp-...@googlegroups.com
even I have a similar use case.
The user can subscribe and unsubscribe from our portal.
I used listBatchSubscribe() method to subscribe the user and listBatchUnsubscribe() to unsubscribe based on user setting in our portal.

When I again tried to subscribe user (via listBatchSubscribe method again) it giving the below error message

{"add_count":0,"update_count":0,"error_count":2,"errors":[{"code":212,"message":"xxx...@xxxxxx.com has unsubscribed, and cannot be resubscribed by you. To prevent false spam complaints, they'll need to resubscribe of their own free will.","email":"xxx...@xxxxxx.com"},{"code":212,"message":"xxxx...@xxxxxx.com has unsubscribed, and cannot be resubscribed by you. To prevent false spam complaints, they'll need to resubscribe of their own free will.","email":"xxxx...@xxxxxx.com"}]}

Please let me know how to subscribe again from API

Thanks

jesse

unread,
May 7, 2013, 5:38:58 AM5/7/13
to mailchimp-...@googlegroups.com
Don't use listBatchSubscribe in that situation.


jesse

hmap....@gmail.com

unread,
May 7, 2013, 5:47:52 AM5/7/13
to mailchimp-...@googlegroups.com
Can you Please let me know which API need to be used for re-subscribe the user again?

Thanks

jesse

unread,
May 7, 2013, 6:30:15 AM5/7/13
to mailchimp-...@googlegroups.com
The method this thread is about, listSubscribe()


jesse

hmap....@gmail.com

unread,
May 7, 2013, 7:22:32 AM5/7/13
to mailchimp-...@googlegroups.com

Thanks Jesse,

I am able to subscribe a user again with listSubscribe() api.

What we are trying to do is sync up our database/portal with mailchimp database for all subscribe/unsubscribe scheduled to run nightly. As per the below document we should be able to do with listBatchSubscribe().
But we are unable to re-subscribe the user again via listBatchSubscribe() . Is it the bug in API or Document?



Thanks

jesse

unread,
May 7, 2013, 7:31:13 AM5/7/13
to mailchimp-...@googlegroups.com
Neither. Re-subscribing is not something you should be automatically doing, especially in batches. If the user really is requesting to resubscribe and you feel you must batch it rather than do it when they request it, you'll need to do what's been described above.

In the future please start new threads for different topics.


jesse
Reply all
Reply to author
Forward
0 new messages