Forums

notify subscribers when new post emailed in problem (5 posts)

  1. buchananben
    Member
    Posted 4 years ago #

    I have subscribe2 setup on wp1.5 to email people when I make a new post. It is working fine when I make a post using the web interface, but if I post a post post using email/wp-mail.php, then subscribers are not notified.
    Is their a way to make subscribe2 work with email posts? Do other email notification plugins handle this?
    Thanks
    Ben

  2. skippy
    Member
    Posted 4 years ago #

    The problem is that the post-by-mail function (and the XMLRPC posting function, too) does not trigger the publish_post action, which triggers subscribe2.

    If you want, edit wp-mail.php, around line 147 you'll see:
    do_action('publish_phone', $post_ID)

    After that, insert the following:
    do_action('publish_post', $post_ID)

    NOTE: Untested. May break in unexpected ways.

  3. buchananben
    Member
    Posted 4 years ago #

    I've tried adding that line but it hasn't had any effect. Any other suggestions?

  4. skippy
    Member
    Posted 4 years ago #

    Not off-hand. You could try calling subscribe2 ($post_ID) directly, instead of executing the publish_post action. Again, untested and may not work.

  5. buchananben
    Member
    Posted 4 years ago #

    no luck either.
    Thanks for trying

Topic Closed

This topic has been closed to new replies.

About this Topic