Mass mailout plugin for Elgg / Send messages to all users [1.7.X - 2.X] v3.3

Release Notes

Fixed : Users getting duplicate mails.

  • Thanks for this great plugin!

    I am using it with the "User validation by admin" plugin, and it seems that there is some trouble putting both plugins together.  Mass mailout does not check if an user has been validated or not, and hence it sends mass emails even to unvalidated users. Looking at the Mass mailout plugin code, it seems that it doesn't check wheter a user has been banned, but I have not tested this case. Perhaps I am missing something.

  • I have modified the SQL query in galliMassmail_select_emails() function to consider banned and unvalidated users, just in case it were useful for anyone.

    function galliMassmail_select_emails($limit = 10, $offset =0){
    $dbPrefix = elgg_get_config('dbprefix');
    $query = "SELECT email from {$dbPrefix}users_entity WHERE banned='no' AND last_login > 0 ORDER BY {$dbPrefix}users_entity.guid ASC LIMIT $offset, $limit";
    return get_data($query);

  • @David : Yes, it wont send mail to all registered emails in the system irrespective of their validation status. The modification, you shown should work. You can submit it as a pull request for the plugin through github.

  • First time using and its not sending out emails says "incomplete" ????

  • another useful enhancement would be to give the option of sending the messages to the elgg internal inbox too.. maybe an option to send to email, to internal inbox or to both.

Team Webgalli

Leading Elgg developers India. We provide Elgg development, consultation and optimizations. To know more about our Elgg services and for cool elgg stuffs visit us


  • Category: Communication
  • License: GNU General Public License (GPL) version 2
  • Updated: 2016-8-22
  • Downloads: 7359
  • Recommendations: 31

Other Projects

View Team Webgalli's plugins