Submitted by timmillwood on Fri, 12/19/2008 - 16:10
My "customer" just asked me "can I see the user's role when they contact me on the contact form". I looked at the option of setting up web form module, using hook_form_alter or hook_mail_alter.
Finally the hook_mail_alter option was chosen, because it seemed the quickest, and the Contact Profile module was born.
All the module does is add the user's name, email address and roles to the bottom of the email sent from the contact form.