hugofirth / laravel-mailchimp

A composer package for the MailChimp API PHP class (as provided by MailChimp) which supports the Laravel 4 framework.
96 stars 27 forks source link

UpdateMember Method Cant update email Address in Mailchimp #16

Closed n3rotech closed 10 years ago

n3rotech commented 10 years ago

i have only one email as subscriber in mailchimp : nerotech.mailchimp@gmail.com

and i want to update be kurotech.mailchimp@gmail.com with this code : MailchimpWrapper::lists()->updateMember('22ea573b49', array('email' => 'nerotech.mailchimp@gmail.com'), array('EMAIL' => 'kurotech.mailchimp@gmail.com'));

but im get Error "Email_AlreadySubscribed" for kurotech.mailchimp@gmail.com. in this condition im only have nerotech.mailchimp@gmail.com in that list. but it says kurotech.mailchimp@gmail.com already subscribed.. any idea for that problem? thank you

hugofirth commented 10 years ago

@n3rotech No I don't I'm afraid. I'll happily have a look - might I suggest following up some of your issues with Mailchimp directly however? laravel-mailchimp is a very simple wrapper and it appears that many of the issues you are encountering may be issues with the mailchimp PHP library itself.

They have an email address for supporting api related issues. To be clear I haven't actually tried to replicate the error - so I can't be sure, but my educated guess is based upon the fact that nothing in laravel-mailchimp should be able to cause the issue described. Let me know how you get on :)

n3rotech commented 10 years ago

this is answer from mailchimp : " I was able to find a few instances, some of which appears to be unsubscribed from some of the lists. In this particular case, you'll want to make sure to delete the subscriber before trying to re-add it to a list. "

fixed for my case thank you