Page 1 of 1

Critical: No admin or new user emails!

PostPosted: August 12th, 2011, 6:38 pm
by glbrent
I'm having a major issue at a very crazy time of a lot of business.
I am not receiving any new user emails from my s2member. They were working in the past but then they stopped. I don't know if having the 'Auto login" hack is causing this at all. But now I'm getting subscriptions and paypal is sending me stuff. It looks like I have about 80 people on my new user "free registration" and not one email. I'm just not sure what's going on. I think I had an login pluggin widget having a conflict with s2member so I removed and deleted the other widget.

I the email notifications set to custom and they send out a login/password and some other stuff.
Admin email set to support@apazones.com

I have the latest patch from last night.

This was working at one point, but... I have no idea now.

Re: Critical: No admin or new user emails!

PostPosted: August 12th, 2011, 7:05 pm
by Bruce C
Try deleting the file from the s2hacks dir, and see if it works again(make sure to save a copy of it), if it does, then perhaps you will have to recreate the email from that file, in order to get it to work.

Re: Critical: No admin or new user emails!

PostPosted: August 12th, 2011, 7:58 pm
by glbrent
So that was it alright. I disabled the s2hack.php and it works just like normal. Now I need to find a work around so I can still do my automatic login. Any thoughts?
Code: Select all
<?php
add_action('ws_plugin__s2member_during_configure_user_registration_front_side', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
    wp_set_auth_cookie($vars['user_id'], false, is_ssl());
    wp_redirect(S2MEMBER_LOGIN_WELCOME_PAGE_URL . '?first');
    exit;
}
?>

on how to make the emails work before it automatically logs in. wish I knew php right now. Maybe it can do a quick " thank you page, we are redirecting you to the members area" type of deal. So it can hit the function neccessary to send out the emails.

Re: Critical: No admin or new user emails!

PostPosted: August 12th, 2011, 9:00 pm
by Bruce C
I'll work on it in a bit. If I figure it out I'll post a snippet, that is if Cristian doesn't get to it first. :lol:

Re: Critical: No admin or new user emails!

PostPosted: August 12th, 2011, 9:58 pm
by Cristián Lávaque
In the thread where you copied that hack from, I later posted an update because registration notifications weren't working, which may fix your problem too. viewtopic.php?f=4&t=14211&p=30620#p29918

I hope that helps.

Re: Critical: No admin or new user emails!

PostPosted: August 13th, 2011, 2:22 pm
by glbrent
So I copied and tried the new revision on that thread.
It does let the notification(s) to 3rd party. IE my Mailchimp addon functions correctly now. However, the generic email from Wordpress or s2member does not go out to the new registrant, nor does an email that comes to the admin. Maybe I will pass the user through Mailchimp I guess. But it still doesn't help with the admin emails.
Sorry

Re: Critical: No admin or new user emails!

PostPosted: August 15th, 2011, 2:21 pm
by Cristián Lávaque
Got it. Thanks for finding that problem. I posted an update here viewtopic.php?f=4&t=14211&p=31548#p31548