Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of hnla

send mass email (30 posts)

Started 1 year, 11 months ago by: rspowers

  • Profile picture of rspowers rspowers said 1 year, 11 months ago:

    can i send a mass email message via buddypress? i see i can send a mass message but it doesnt go the users email.

  • Profile picture of photodesign photodesign said 1 year, 11 months ago:

    When you send an internal message, the user will be sent an email notifying them of the message (unless they have it disabled). I’m curious about mass mailing this way, even if the user has to log in get the message.

    As an admin you have a checkbox for “this is a message to all users” – I was going to try that.

  • Profile picture of rspowers rspowers said 1 year, 11 months ago:

    unless i type in each users name, there is no way to send them the message unless im missing something. if i click the ‘this notice to all users’ box it doestn send an actual email, just a notice when they log in next time. So is the only way to send a mass email to type in each users username?

  • Profile picture of graphical_force graphical_force said 1 year, 9 months ago:

    I am also needing a mass email feature. Does anyone else know if this can be done?

    Thanks in advance!

  • Profile picture of paulhastings0 paulhastings0 said 1 year, 9 months ago:

    Here’s a plugin for WPMU: http://wordpress.org/extend/plugins/sitewide-newsletter/

  • Profile picture of jeremyltn jeremyltn said 1 year, 9 months ago:

    I wrote a script to send messages to all users, but it needs to be cleaned up some to make it a plugin. I’ll post it for you guys sometime tomorrow.

  • Profile picture of Tore Tore said 1 year, 9 months ago:

    There’s some old forum posts about this. Search the forum and find plugins and work arounds.

  • Profile picture of jeremyltn jeremyltn said 1 year, 9 months ago:

    Drop this in your plugins folder http://theantistatic.com/bpmessage.zip

  • Profile picture of r-a-y r-a-y said 1 year, 9 months ago:

    @jeremyltn

    Just took a quick look at the code, it’s not great to add all the recipients to the one message because when you view the message in BP, you’ll see all the user IDs attached to that message.

    To remedy this, use a foreach loop for the $user_ids array.
    Also, implement some type of delay for every x amount of messages sent.

    Check out the sleep() function.

    eg.

    $s = 0; // sent messages counter
    foreach ($user_ids as $user_id) {
    	if($user_id == "1") continue; // do not send message to yourself!
    
    	messages_new_message( array('sender_id' => 1, 'subject' => $subject, 'content' => $body, 'recipients' => $user_id) );
    
    	$s++;
    
    	if ( $s % 50 == 0 )
    		sleep(10); // to help server load, delay 10 seconds for every 50 messages sent
    }

  • Profile picture of gian-ava gian-ava said 1 year, 9 months ago:

    I didn’t try yet the” This is a notice to all users” yet, but I thought that that would send an email notifications to all the users (if they have email notifications on).

    Selecting that checkbox, does it send only a site notification instead? I mean when users log in? No mail?

  • Profile picture of jeremyltn jeremyltn said 1 year, 9 months ago:

    Thanks Ray. Actually was using a foreach before but was worried about timeouts. I’ll implement this way and update the code.

  • Profile picture of r-a-y r-a-y said 1 year, 9 months ago:

    @gian-ava

    A notice displays a message on the site only; an email isn’t sent out.

    In the default theme, this is shown on the sidebar.

    Use the following template tag to display notices:

    <?php
    if ( function_exists( 'bp_message_get_notices' ) )
    	bp_message_get_notices();
    ?>

  • Profile picture of gian-ava gian-ava said 1 year, 9 months ago:

    @r-a-y Thanks for the info!

  • Profile picture of David Lewis David Lewis said 1 year, 8 months ago:

    The Group Activity Subscription plugin has an option to send a notice to all group members regardless of their notification settings. You might use this in combination with the BP Group Management plugin. You could use that plugin to add all members to an “Announcements” group. Just make sure you keep on top of it so that everyone is always a member of the “Announcements” group. People can still leave the group… so this isn’t great. But it’s an idea anyway.

  • Profile picture of Sarah Gooding Sarah Gooding said 1 year, 6 months ago:

    @jeremyltn Are you going to add your plugin to the repo? I tested it out tonight on WP 3.0 and BP 1.2.4.1 and it didn’t work for me. So I changed the post URL and then it works. However, it updates the page with a warning about headers already having been sent from the BuddyPress messaging component, which I’m not sure how to fix. Anyway, I’m writing a blog and linking to your plugin, offering it for download with the updated post URL. I know a lot of BuddyPress people would love it if you added it to the repo- People are always looking for this. :) Thanks for the work you’ve done!