• i’d like to have a list of email addresses that get sent notice when i publish a new post. is this already available as a mod/hack?
    ken

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter Anonymous

    what i ended up doing is adding a simple mail(); in b2edit.php just at the end of the post section. its working great. right now, i’m using mailman to manage the emails to send to until this becomes a feature (i hope).
    thanks for the RSS idea too.

    Can you expand on how you did this, i.e. how do you include more than one e-mail address, how are you using mailman to manage these etc. e-mail me (mike AT seriocomic DOT com) if you don’t feel like posting all that on the forum. Pretty Please.
    M.

    I’m guessing he set up a mailman list and then has the publish part of b2edit send an email to the list address. The list handles all the subscribing, unsubscribing, email confirmations, and all that jazz.

    Thanks, its just that i’m one of those plebs who needs to have it front of them, step by god-you’re-an-idiot-step. Because I am such a bad hack.
    M.
    *off to wreck an attempt at setting up a mailing list and b2edit.php*

    Thread Starter Anonymous

    ok, sorry it took me a bit to get back. right, i created a maillist with mailman, and i then added this to b2edit.php:
    <start snip>
    $post_ID);
    }
    }
    // added by ken mail function 6/16/03
    $to_address = “llamablog@llamakc.org”;
    $from_address = $llamamail;
    $subject = “new post from llamakc”;
    $message = “new post from life by dictionary”;
    $headers = “From: llamablog <llamablog@llamakc.org> \r\n”.
    “Reply-To: llamablog@llamakc.org \r\n”.
    “X-Mailer: PHP”;
    mail($to_address, $subject, $message, $headers);
    // end ken’s ugly hack
    } // end if publish
    <end ugly snip>
    with it getting inserted in between the 2nd and last brace in the case ‘post’; ending.
    i added a link to my menu that pointed to the listinfo/nameofblogmaillist page and when i post a new journal entry (not comments) the people get notified.
    i decided to do it this way instead of adding a new table to the db in case later upgrades would clobber it.
    PS: i’m using Debian GNU/Linux Unstable.
    my email is ken at llamakc dot org if you have any other questions. i guess i’ll go sign up here so i’m not ANON anymore. 😉
    hth,
    ken

    Thread Starter Anonymous

    congrats! toy with the headers and it should be ok. no customization with mailman? wow. i find it extremely extensible. i love it. regardless, i’m glad your way is working too. i hope this becomes a feature down the road.

    Thread Starter Anonymous

    seriocomic: i am really looking to do the same thing with my site. Is the email sent automatically? If you have some free time I would love to know how to integrate the php script with my wordpress installation. let me know here or email me at veklita@mac.com

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘notify by email of new post request’ is closed to new replies.