I believe this module is in desperate need of a trigger, at the point of sending the email.
I've added a trigger firing, and the code for the trigger and one action - sending a notice e-mail.
(the action is mainly the same as the system.module action, with a few changes to accommodate the custom fields)

The trigger: in anonymous_contact.module, line 125:

  //Fire the trigger
  module_invoke_all('anonymous_contact', 'user_contact_form_sent', $account, $values);

In the attached file:

  1. Trigger and action definitions: hook_hook_info(), hook_trigger_name(), hook_action_info();
  2. The action is configurable, so: its form, validation and submittion;
  3. The action itself;
  4. Addition to hook_mail(), another switch-case for the new mailing action

- AmitK
This has been implemented at Jerusalem Photos

CommentFileSizeAuthor
anonymous_contact_trigger.patch.txt4.68 KBamitkeret