Reply to comment
Where's the worm for your drupal hook?
Been away from Drupal for a few (combination of Java work and vacation). My task was to implement a BCC for a particular email that was going out.
I found the hook_mail_alter
I fire up my editor, grab the lates svn updates and plunk down the following "hello hook" into my custom theme.
function phptemplate_mail_alter(&$message) { error_log ("phptemplate_mail_alter called"); print('Message id is' . $message['id']);}
Guess what happenned? NADA. Nothing happenned. I should be kicked for my stupidity. Why? hook_mail_alter is not a theme function.
Once I realized my mistake, I placed my hook into my custom module, and viola, it works. I am ready to proceed.
