Hello
I'm looking for a module which is able to do the following, because I have no clue how I can implement this with the built-in contact module.
I have some specific user roles on my site (ex. administration, members, maintainers, visitors, and registred visitors)
Now, what I want is that some one with the role 'administration' can send an email to everyone who has the role 'members'. This means that the contact form has to be role-based. I know you can add a new categorry to the contactform, but that is not at all what I want for two reasons: this contactform is public and I don't think there's a way you can only allow certain certain roles to use specific categories in the form; secondly: this would mean I have to add every emailaddress manually. I want it to be role-based.
I've been looking all over the interwebz, but I can't seem to find anything like this for D7.
Anyone has any idea?
The cleanest way of doing
The cleanest way of doing this is probably to write a tiny custom module that implements hook_menu_alter(). Look this up on http://api.drupal.org. Also, on drupal.org, look up how to create a custom module.
All you would need to do would be to change the way that Drupal determines whether a particular user has permission to 'access' the contact form, basically adding in your own custom logic to what is there already (i.e. use the existing code in contact.module as a starting point, copy and past that into your own routine and then add your own code).
It's probably worth my adding here that the "menu system" is slightly misnamed: it's really a system which works out what to do when a particular path (page) is requested, e.g. node/345 or user/678/contact. Two of the most important things the menu system does are 1. to work out which routine (callback) will be used to generate the main page output and 2. work out whether the current user has permission to access the requested path.
HTH!
mass_contact module
Try using this: http://drupal.org/project/mass_contact