Skip to content
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

Require Double opt in #54

Closed
stefro opened this issue Oct 27, 2016 · 3 comments
Closed

Require Double opt in #54

stefro opened this issue Oct 27, 2016 · 3 comments

Comments

@stefro
Copy link

stefro commented Oct 27, 2016

Hi,

In version 2 it was possible to set a "require double opt-in" parameter. I can't find it in this (V3) release. Is it removed?

@stefro
Copy link
Author

stefro commented Oct 27, 2016

Well, I figured it out!

Mailchimp didn't remove it from the API V3.
Here is how you do it (in this spatie package):
just add a 4th parameter to the subscribe method like so:

Newsletter::subscribe($request->email, ['FNAME' => $request->firstname, 'LNAME' => $request->lastname], '', ['status' => 'pending']);

When Mailchimp receives the status "pendig" it will send a confirmation email (double opt-in).

The issue can be closed

@freekmurze
Copy link
Member

👍

@ajkerfaisal
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants