By tilul on
Hello,
I am doing a site where custom registration notification emails will be sent to different administrators of the site according to a the user's profile parameters. For example, if a user registers as a teacher, or a student, different parties will handle that request.
Any ideas or help will be greatly appreciated.
Thanks!
Comments
How are you keeping track of
How are you keeping track of whether a person is a teacher, student, etc? Are you using roles or a profile field?
I am using profile field ( in
I am using profile field ( in registration form) to track down the person's attributes.
Sounds like you'll need to
Sounds like you'll need to write some custom code and hook into the user hook (I don't believe the profile module has any special hooks). Look into the hook_user documentation.
There is a module called Role
There is a module called Role change notify, can be found here http://drupal.org/project/role_change_notify
If it comes to custom coding this could be a really good base as there won't be a lot of things you'll need to change and it also provides customizable messages per role.