Would it be possible to allow custom modules to pass in the $module argument to drupal_mail(...) to make it easier to override hook_mail(...)? Could this variable be added to drupal_alter('print_mail', $params, $to) allowing modules to change it? Thank you.

Comments

ann b created an issue.