How can I send email and notifications to the active (unlocked) users of the site? What modules do I need for that? Could you explain it clearly?

Already I'm using messaging, notifications and the Mass contact module. If I send mail through the Mass contact module, the blocked users also receive mails.


Add a category in Mass Contact


and "Roles to receive e-mail" , just check "authenticated user" and save configuration.

And "authenticated user" are active user not the blocked user.


You could use hook_mail_alter to check the emails before they go out and filter the users on your conditions before they actually send to anyone.


You can use the Rules and VBO modules.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.