I am looking into using postie and subscribe2 together as well. (waiting for the domain to be set up at work) So as of now if you post something using postie, subscribe2 does not send out an email that there is a new post?
Not good, I’m trying to get this as automated as possible and my technical abbility in this area isn’t much. I need certain people to be notified about certain posts (using the category as a filter), so a work around to notify all users when postie posts something isn’t going to work.
I think I may have a fix, but I need to test a bit more. The issue is that I have to add these functions to POSTIE and some code. IF that is the case, Wayne will need to make a quick fix to standard for us.
Hi Wayne,
I have a somewhat dirty fix to this problem. I need to you check this out and see if we can place this in a filter of yours or make it somewhat like a toggle on/off using the settings in postie. However, you may need to insert this into your standard code and upgrade everyone. I hard coded the PHP to be included but we can get this dynamic to adjust for folder renames.
Here is what I have :
Around line 6 :
INSERT These Lines:
require_once($_SERVER[‘DOCUMENT_ROOT’] . “/WP FOLDER NAME/wp-content/plugins/subscribe2/classes/class-s2-core.php”);
// Subscribe2 Class
$s2c = new s2class();
** Directly below you email for postie. I did not want to interrupt it flow and let it finish before firing up another email **
Around line 450 :
INSERT These Lines:
// Get recipients/users that are registered from function in class Subscribe2
$registered = $s2c->get_all_registered();
$s2c->mail($registered, $subject, $content, ‘html’);
Can you test or see if we can get a filter for this?
Thanks.
This works.
All registered users are sent to email and received email. I have about 170 users.
The issue is when an email ID is not valid – it causes a mail return and stops the process to send for remainder on list. I cannot debug but this is my theory.
I will try to find a plugin or create one to validate emails and alert the blog owner to clean it up.
Wayne, let me know if you can implement this somehow, or I need to pull it out and over lay your updates in POSTIE-FUNCTIONS.
Thanks,
Just in case you are having issue. Try sending the mail to postie as ADMIN.
Also, SUBSCRIBE2 setting, uses ADMIN as well or use generic blog name as from person.