Forums

Subscribe2
Emails not Sending - again (27 posts)

  1. WebEndev
    Member
    Posted 4 months ago #

    Hi,
    Emails are not sending. I have done this to try to remedy:

    1. Set the "Send Email From" to the admin account
    2. Set the email in the admin account to the same domain as the blog
    3. created the email account from the admin, in cPanel for the domain
    4. Set "Restrict the number of recipients per email" in Settings to 1
    5. Contacted the host (Hostgator), and had them check logs and look at this thread http://wordpress.org/support/topic/plugin-subscribe2-not-sending-subscriptionunsubscription-notification-emails?replies=8. They spent some time on it, and said that they don't see a problem blocking outgoing email. They did make one adjustment "I did see that one rule, 1234234 was being hit so I whitelisted that for you. I did not see any other issues."

    So at this point, I am out of ideas...
    Thank you.

    http://wordpress.org/extend/plugins/subscribe2/

  2. MattyRob
    Member
    Posted 4 months ago #

    @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.

  3. WebEndev
    Member
    Posted 4 months ago #

    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!

  4. MattyRob
    Member
    Posted 4 months ago #

    @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?

  5. WebEndev
    Member
    Posted 4 months ago #

    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

  6. MattyRob
    Member
    Posted 4 months ago #

    @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?

  7. WebEndev
    Member
    Posted 4 months ago #

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

    These are 'Registered Subscribers' - http://screencast.com/t/e1h9PguG28s

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

    So none of that helps :(

  8. WebEndev
    Member
    Posted 4 months ago #

    Ok, more information -
    I have the settings set to this http://screencast.com/t/PrU6PiiZ0W and this http://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!

  9. MattyRob
    Member
    Posted 4 months ago #

    @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

  10. WebEndev
    Member
    Posted 4 months ago #

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

    Next? :)

  11. MattyRob
    Member
    Posted 4 months ago #

    @WebEndev,

    Is this related?

  12. WebEndev
    Member
    Posted 4 months ago #

    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.

  13. WebEndev
    Member
    Posted 4 months ago #

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

  14. WebEndev
    Member
    Posted 4 months ago #

    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!

  15. BrettRelander
    Member
    Posted 4 months ago #

    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.

  16. MattyRob
    Member
    Posted 4 months ago #

    @BrettRelander,

    Try the development version of the code from here:
    http://downloads.wordpress.org/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)

  17. BrettRelander
    Member
    Posted 4 months ago #

    We've never altered the code to begin with and I'm not sure how to do what you're asking. She only has 80 subscribers so I don't think this is a hosting issue. Can I give you admin access to the site to take a look?

  18. MattyRob
    Member
    Posted 4 months ago #

    @BrettRelander,

    Are you on GoDaddy at all? I'm seeing big issues with their hosting right now.

  19. BrettRelander
    Member
    Posted 4 months ago #

    It is on GoDaddy hosting and I have spoken to them. The emails for new published blogs are going out through the server but they're never showing up. The preview option in the plugin settings section works correctly and they do show up. Therefore it seems there's something different in the way the script is written for sending preview emails as opposed to new blog posts.
    I've tried replacing the code with the development version you provided and the same problem persists. Would you mind taking a look?
    I really need to get this fixed. Thanks for your help.

  20. MattyRob
    Member
    Posted 4 months ago #

    @ BrettRelander,

    Subscribe2 passes the emails to WordPress which then passes them to the mail() function in PHP, from there they will go to the sendmail binary application on the server and only then show in logs on the server. So, if it's showing in the logs then everything before is working well - it seems like it's a GoDaddy issue to me, despite what they are saying - especially when there are others hosted with GoDaddy having exactly the same problem.

  21. BrettRelander
    Member
    Posted 4 months ago #

    If that's the case then why are the preview emails going through correctly? It seems there's a difference in the way the emails are being sent to the server if one set is getting delivered and one is not. The only difference between the emails that are being delivered and the ones that are not is where the emails are being generated on the site. So, are we sure that everything is being transferred to the server correctly when a new blog is published?
    Again, thanks for your help.

  22. MattyRob
    Member
    Posted 4 months ago #

    @BrettRelander,

    The difference between the 2 emails is that the previews are sent from you back to you whereas live notifications are sent from you to lots of subscribers all at once.

    So, the first example does not look at all like the activities of a spammer while the second absolutely does. That is why hosting providers apply limits and restrictions and why Subscribe2 gets reported for not working. Life would be easier without spam!

    As you said above - all of a sudden it stopped working. Well, you didn't change anything and Subscribe2 and WordPress are the same as well. What may well have changed is the anti-spam policies in place on your server - these are frequently changed and updated by hosting companies without telling anyone. Why? Because they are not going to advertise their new anti-spam measures so they can be quickly circumvented.

  23. franktrew
    Member
    Posted 3 months ago #

    I too am having (again) issues with emails not sending. I have 211 subscribers, most public, we are hosted by Godaddy.

    A month or so ago, this happened, then all of a sudden all the emails went out at once (we resent the emails several times before we realized what was going on).

    It worked until just recently.

    Any suggestions?

  24. dsahra
    Member
    Posted 1 month ago #

    I'm using Subscribe2 in my blogs.From two days ago , I got a problem with sending email preview . Although in my all 18 blogs the message is displayed " preview messages sent to logged in user " , the email preview doesn't send correctly to the admin .I tried it many times and also contact with the Godaddy , the hosting, there is no problem with the hosting . Please tell me how can I solve this problem . It's vital to solve it as soon as possible .

  25. MattyRob
    Member
    Posted 1 month ago #

    @dsahra,

    You can easily solve this problem by leaving GoDaddy. See this thread for more information on how bad GoDaddy support is right now.

  26. Omega Supreme
    Member
    Posted 1 month ago #

    Hi,

    I see a few of you have been replying in the last hour.

    I'm looking for this plugin and cannot find it anywhere. The developers site forwards it to here, but when I search here it shows Ooops not found.

    Can someone help with either a good link or a possible clean download link to this plugin.

    Thank you

  27. MattyRob
    Member
    Posted 1 month ago #

    @Omega Supreme,

    I'm waiting for the people at WordPress to do something to re-enable downloads - only been waiting 14 hours now!

    http://wordpress.org/support/topic/has-subscribe2-been-removed-from-the-plugin-repository?replies=2

Reply

You must log in to post.

About this Plugin

About this Topic

Tags