added filtering of posts by user groups in the send_email_alerts command