PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Double e-mails

s2Member Plugin. A Membership plugin for WordPress®.

Double e-mails

Postby mariusvdm » November 26th, 2011, 12:37 pm

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.
User avatar
mariusvdm
Registered User
Registered User
 
Posts: 2
Joined: November 26, 2011

Re: Double e-mails

Postby Raam Dev » November 27th, 2011, 10:32 pm

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.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Double e-mails

Postby swelle » December 7th, 2011, 10:34 pm

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
User avatar
swelle
Registered User
Registered User
 
Posts: 8
Joined: September 28, 2011

Re: Double e-mails

Postby swelle » December 7th, 2011, 10:40 pm

nevermind...figured it out. Had extra spaces in the code I pasted into s2-hacks.php. Sorry!
User avatar
swelle
Registered User
Registered User
 
Posts: 8
Joined: September 28, 2011

Re: Double e-mails

Postby Raam Dev » December 8th, 2011, 4:46 pm

No worries, swelle! Glad to hear you figured it out. :)
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011

Re: Double e-mails

Postby mariusvdm » January 25th, 2012, 12:19 pm

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.
User avatar
mariusvdm
Registered User
Registered User
 
Posts: 2
Joined: November 26, 2011

Re: Double e-mails

Postby Raam Dev » January 26th, 2012, 11:22 am

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?.
Raam Dev || Wherever you are, be there. || Please rate s2Member!
User avatar
Raam Dev
Developer
Developer
 
Posts: 810
Joined: October 26, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: No registered users and 1 guest

cron