notify by email of new post request (8 posts)

  1. Anonymous
    Posted 13 years ago #

    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?

  2. Anonymous
    Posted 13 years ago #

    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.

  3. seriocomic
    Posted 13 years ago #

    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.

  4. Matt Mullenweg
    Posted 13 years ago #

    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.

  5. seriocomic
    Posted 13 years ago #

    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.
    *off to wreck an attempt at setting up a mailing list and b2edit.php*

  6. Anonymous
    Posted 13 years ago #

    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>
    // 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. ;)

  7. Anonymous
    Posted 13 years ago #

    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.

  8. Anonymous
    Posted 12 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.