Closed (won't fix)
Project:
Mailchimp
Version:
7.x-2.x-dev
Component:
Lists
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2012 at 15:31 UTC
Updated:
7 Sep 2016 at 01:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dsnopekThis is still the case in 7.x-2.x!
I think having the ability to defer actual subscription would be a pretty powerful feature. I can see jm.federico's use case for doing subscription on user account approval. I have a slightly different use case: I'm using LoginTobbogan to require users to verify their e-mail before getting full access to the site. It would be great to defer list subscription until they actually verify their e-mail, removing the need for Mailchimp's double optin (since Drupal is handling that).
Looking at the code, everything is handled directly in hook_user_insert(). I'm not sure what the right approach is yet, but it'd be cool if there was some way to hook in and setup some custom code to defer the subscription until later. I need to think about it some more before writing a patch.
Comments or advice would be appreciated!
Comment #2
dsnopekI have an idea about how I could implement this, even in a seperate module (maybe "mailchimp_deferred_subscribe"?):
jm.federico would be able to create a Rule that triggered on the event "After saving a new user account" that would cause the deferred subscribe action to happen when the user goes from "Blocked" to "Active" (which is what happens when an adminstrator approves an account).
This would also suit my use case, because LoginToboggan registers a Rules event that occurs when the user has verified their e-mail address.
The one thing I'm worried about is that jm.federico's use case seems pretty basic. I have the nagging feeling that it should probably be supported directly in mailchimp_lists. Requiring another module and Rules seems excessive. On the other hand, for my use case, it seems totally reasonable because it's a more complex/advanced thing to do.
I'd appreciate advice from the mailchimp module maintainers if you have time!
Comment #3
levelos commentedIn the D7 version, mailchimp_lists_user_sync() already checks for account status before subscribing a user, so not sure there's an issue?
Comment #4
sylvainm commentedOther case :
When user subscribes to the site, he receives a mailchimp confirmation even if he didn't click on email verification link.
In that case, I think that user should not be mailchimp subscribed until he clicked on email verification link, don't you think ?
Comment #5
bharathkumarkn commentedSubscribe
Comment #6
mynameiscorey commentedI had a look at this when faced with this issue on a site I'm maintaing and found what Levelos said in #3 to be true, but not always effective. In this site we've got some logic to automatically block people who sign up with an email domain that doesn't match a pre-approved list of email domains. The account gets unblocked after a site admin contacts them and verifies their contact info.
The issue is that this check fires in hook_profile2_insert, which executes after hook_user_insert, so by the time the user is blocked they've already been added to the cron queue to be synced to mailchimp lists.
This was my quick solution to the problem and is probably too specifically geared to my use case but it might spark some ideas for a more generalised solution that can be enabled with a variable setting.
Comment #7
weseze commentedHere is a patch that adds an extra checkbox to the field configuration to allow you to delay subscription until the account becomes active.
Comment #8
dmsmidt@weseze #7 is that for 2.x?
Comment #9
amytswan commented“And now our watch [for support of the 7.x-2.x version of the MailChimp module] has ended…” With the approaching deprecation of MailChimp’s API version 2.0, I’m sad to say we too must turn the page. This branch will become unsupported in early October and officially deprecated by the end of this year (2016).
Fret not! The 7.x-4.x and 8.x versions come highly recommended. Both are using Mailchimp’s new API 3.0 and are being actively maintained. If you find this issue still exists on either the 7.x-4.x or 8.x branches, let us know by opening a new ticket. “What is dead may never die, but rises again, harder and stronger!”