Viewing 15 replies - 1 through 15 (of 26 total)
  • @WebEndev,

    How may subscribers do you have? I suspect you are running into the HostGator limitations as listed here.

    It looks like you need to apply throttling no matter how many subscribers you have although I suspect the more subscribers you have the more likely you are to see a problem.

    They recommend sending one email every 8 seconds. You may need to explore throttling (maybe WPMQ) or diverting emails through a service like Amazon SES.

    Thread Starter WebEndev

    (@munman)

    I have 2 subscribers (still testing this and trying to get it to work before implementing). All are registered users on the site.

    Which part of this are you suggesting is the limiting cause?

    In your experience, does WPMQ solve this problem with Hostgator?

    Thanks!

    @WebEndev,

    Well, if you only have 2 subscribers then it must be something else beyond throttling. (That’s why I asked how many you have).

    What versions of WordPress and Subscribe2 are you using? Are you using per-post or digest based emails?

    If you go to Subscribe2->Settings and click preview do you get emails to the email address of the currently logged in user?

    If you go to Subscribe2->Send Email does it report success or failure? Is there an error message on screen after sending?

    Thread Starter WebEndev

    (@munman)

    What versions of WordPress and Subscribe2 are you using? Are you using per-post or digest based emails?

    WP 3.3.1; Subscribe2 7.1

    If you go to Subscribe2->Settings and click preview do you get emails to the email address of the currently logged in user?

    Yes, all 4 formats, every time…

    If you go to Subscribe2->Send Email does it report success or failure? Is there an error message on screen after sending?

    I don’t get an error message, because it DOES send an email from the Send Mail screen. No problems here..

    Thanks

    @WebEndev,

    Okay, that all looks promising then.

    The 2 users you have should be listed at Subscribe2->Subscribers. If they are ‘Registered’ they will have (edit) by the email address, click this and make sure that in the new page that loads that you have all categories checked so they will get email notifications. It may be that when testing Subscribe2 is bailing out as there are no active subscribers.

    If they are ‘Public’ subscribers there should be a date by their name that’s green to indicate that they are active.

    Any of that helping?

    Thread Starter WebEndev

    (@munman)

    Hi
    Checked all that long ago. ??
    Screenshot of Notification Settings screen on one of the users: https://screencast.com/t/dckBPHhelx

    These are ‘Registered Subscribers’ – https://screencast.com/t/e1h9PguG28s

    All users have edit next to them. They are not Public subscribers.

    So none of that helps ??

    Thread Starter WebEndev

    (@munman)

    Ok, more information –
    I have the settings set to this https://screencast.com/t/PrU6PiiZ0W and this https://screencast.com/t/ImvqAhjmq

    So instead of using the Subscribe2 subscription form, I used Gravity Forms to create a Registration form for the site. This creates a WP User, and also created a Registered Subscriber in Subscribe2.

    So I went back to the Subscribe2 form and entered and email, which created a Public Subscriber. I then tested by creating a post, and the public subscriber did receive an email successfully.

    But I don’t want them to be Public Subscribers, I want them to be Registered Subscribers…

    So… even though the registered subscribers created by the Gravity Forms registration LOOK ok, is there some flag or setting in the database that is not allowing the emails to go out to them?

    Thanks!

    @WebEndev,

    It does seems that registrations made through your Gravity Forms UI are missing something vital.

    For each registered user there should be the following in the usermeta table:

    ‘s2_subscribed’ containing comma separated category IDs for all subscribed categories
    ‘s2_catX’ where X is a subscribed category ID and the meta_value is also the ID
    ‘s2_format’ containing the preferred email format, should be ‘html’, ‘html_excerpt’, ‘post’ or ‘excerpt’
    ‘s2_autosub’ which is whether the user is auto-subscribed to new categories, should be 1 or 0
    ‘s2_authors’ containing comma separated author IDs for authors from whom they don’t want notifications

    Thread Starter WebEndev

    (@munman)

    Checked it all and it looks ok to me:
    https://screencast.com/t/ljLV64vvL9jB

    Next? ??

    @WebEndev,

    Is this related?

    Thread Starter WebEndev

    (@munman)

    I added the code here:

    } else {
    			// create post format entries for all users
    			if ( in_array($this->subscribe2_options['autoformat'], array('html', 'html_excerpt', 'post', 'excerpt')) ) {
    				update_user_meta($user_ID, $this->get_usermeta_keyname('s2_format'), $this->subscribe2_options['autoformat']);
    			} else {
    				update_user_meta($user_ID, $this->get_usermeta_keyname('s2_format'), 'excerpt');
    			}
    			update_user_meta($user_ID, $this->get_usermeta_keyname('s2_autosub'), $this->subscribe2_options['autosub_def']);
    			update_user_meta($user_ID, $this->get_usermeta_keyname('s2_authors'), '');
    			// if the are no existing subscriptions, create them if we have consent
    			if (  true === $consent ) {
    				update_user_meta($user_ID, $this->get_usermeta_keyname('s2_subscribed'), $cats);
    				foreach ( explode(',', $cats) as $cat ) {
    					update_user_meta($user_ID, $this->get_usermeta_keyname('s2_cat') . $cat, $cat);
    				}

    and here

    /**
    	Subscribe all registered users to category selected on Admin Manage Page
    	*/
    	function subscribe_registered_users($emails = '', $cats = array()) {
    		if ( '' == $emails || '' == $cats ) { return false; }
    		update_user_meta($user_ID, $this->get_usermeta_keyname('s2_authors'), '');
    		global $wpdb;
    
    		$useremails = explode(",", $emails);
    		$useremails = implode("', '", $useremails);
    
    		$sql = "SELECT ID FROM $wpdb->users WHERE user_email IN ('$useremails')";
    		$user_IDs = $wpdb->get_col($sql);

    but it didn’t make a difference…
    I either have the code in the wrong place, or I have a different issue. Although this sounds JUST like my situation.

    Thread Starter WebEndev

    (@munman)

    Ahhh, but yes, the screen shot I sent you 4 hours ago (https://screencast.com/t/ljLV64vvL9jB) shows no entry at all for s2_authors…
    That MUST be it

    Thread Starter WebEndev

    (@munman)

    Ahhhhhh!
    That was it!
    I had to recreate/register again the user, and then ran a test.
    It worked!

    Man… the hours I had on this … lol
    Anyway, nice job to you and Gengar003 finding and fixing this!

    I’m having a similar problem with my wife’s site. All of a sudden emails are not being sent to subscribers when new blogs posts are published. I’ve tried most of the things above, but I’m not a programmer so I’m limited to a certain degree. Any help would be much appreciated. Thanks.

    @brettrelander,

    Try the development version of the code from here:
    https://downloads.www.ads-software.com/plugin/subscribe2.zip

    If that still fails contact your hosting provider and ask them what their daily limit is on your domain sending emails and how it’s enforced (i.e. 500 emails per hour at 8 per second)

Viewing 15 replies - 1 through 15 (of 26 total)
  • The topic ‘[Plugin: Subscribe2] Emails not Sending – again’ is closed to new replies.