-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable double opt-in? #30
Comments
I am needing to find out the same for disabling double opt in and to update an existing email address. The code that I have attempted to use is: MailchimpWrapper::lists()->subscribe('list_id', array('email' => Input::get('email'), array('FNAME' => Input::get('first_name'), 'LNAME' => Input::get('last_name')), 'double_optin' => false, 'update_existing' => true)); |
This works for me:
null is first name and last name |
Thanks @bartmoons will try this out and see if it will also work for me. |
I was looking for a solution where I can write the option names as keys for a multidimensional array like so:
But unfortunately I couldn't figure out the syntax for that (if it is even possible), so thanks for @bartmoons' suggestion, I was able to get it work like so:
Using this approach you will need to add each parameter, at least until the one you want to specify, even though they're actually optional. |
I have tried this:
The text was updated successfully, but these errors were encountered: