Page 1 of 1

Double e-mails

PostPosted: November 26th, 2011, 12:37 pm
by mariusvdm
I use S2Member form for the User Registration. How can I prevent the systems to send BOTH an email to the newly registered user. S2Member send an email with the Registrtion details AND MailChimp send an email to ask confirmation to get on the subscriber list. I want the users that subscribe via S2Member to go on the MailChimp list automatically - without MailChimp asking them for confirmation.

Re: Double e-mails

PostPosted: November 27th, 2011, 10:32 pm
by Raam Dev
Hi mariusvdm,

To silently subscribe Users/Members to your MailChimp List(s), add this file:
/wp-content/mu-plugins/s2-hacks.php
With this code:
Code: Select all
<?php
add_filter
("ws_plugin__s2member_mailchimp_double_optin", "__return_false");
?>


After adding this file, you could configure your s2Member options to NOT display the checkbox either if you like (WP Admin -> s2Member -> API / List Servers -> Registration / Double Opt-in Box), and this way all Customers get on your list during registration, no choice about it, no confirmation required. Be careful with this though, as this practice is generally frowned upon.

Re: Double e-mails

PostPosted: December 7th, 2011, 10:34 pm
by swelle
Hmmmm...I tried this and I'm getting the following error messages on my registration page. Any ideas?

Thanks!

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web092/b922/ipg.scottwellecom/wp-content/mu-plugins/s2-hacks.php:1) in /hermes/bosweb/web092/b922/ipg.scottwellecom/wp-login.php on line 353

Warning: Cannot modify header information - headers already sent by (output started at /hermes/bosweb/web092/b922/ipg.scottwellecom/wp-content/mu-plugins/s2-hacks.php:1) in /hermes/bosweb/web092/b922/ipg.scottwellecom/wp-login.php on line 365

Re: Double e-mails

PostPosted: December 7th, 2011, 10:40 pm
by swelle
nevermind...figured it out. Had extra spaces in the code I pasted into s2-hacks.php. Sorry!

Re: Double e-mails

PostPosted: December 8th, 2011, 4:46 pm
by Raam Dev
No worries, swelle! Glad to hear you figured it out. :)

Re: Double e-mails

PostPosted: January 25th, 2012, 12:19 pm
by mariusvdm
Oohh ... I completely forgot about this enquiry - I was expected an email but never received it.
Thank you VERY much for this work-around ... it works absolutely perfect! I am soo happy I could managed to get it sorted here. I installed, in my search for an answer, another membership plugin from WPMU and they have this feature to Mail-Chimp as an option on the plugin - somethig like "Auto Opt-in" Yes/No. is there a possibility that you will add it as an option on S2Member as well?
Again - many thanks for a perfect solution.

Re: Double e-mails

PostPosted: January 26th, 2012, 11:22 am
by Raam Dev
Hi mariusvdm,

s2Member already supports MailChimp. Please see WP Admin -> s2Member -> API / List Servers -> MailChimp Integration and WP Admin -> s2Member -> API / List Servers -> Automate Un-Subscribe/Opt-Outs?.