spatie / laravel-newsletter

Manage Mailcoach and MailChimp newsletters in Laravel
https://freek.dev/440-easily-integrate-mailchimp-in-laravel-5
MIT License
1.6k stars 233 forks source link

Synchronize users with mailchimp audience/list. #252

Closed amanpatel closed 3 years ago

amanpatel commented 3 years ago

I am wondering what the best way to sync (one way is good). The only thing that would be nice to do is in case someone unsubscribed via a mailchimp link, we probably don't want them to be re-subscribed.

Also, in the README, I found the following two methods are similarly described.

There's also a convenience method to check if someone is already subscribed:
Newsletter::hasMember('nanny.ogg@discworld.com'); //returns a boolean

In addition to this you can also check if a user is subscribed to your list:
Newsletter::isSubscribed('lord.vetinari@discworld.com'); //returns a boolean

Is it the case that hasMember() checks if the email exists anywhere in mailchimp. And "isSubscribed" checks if that email address is actually subscribed to a list? (by the way why is list not provided via arguments? does it just assume the default list provided in the config?)

spatie-bot commented 3 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.