Don't send some emails.

Public

</> CopyGet raw version
php
  1. function MYMODULE_mail_alter(&$message) {
  2. if (MY_CONDITION) {
  3. $message['send'] = FALSE;
  4. }
  5. }