Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I use the following patch to be able to disable Drupal from sending out mail: https://drupal.org/files/hook_mail_alter-cancel-800434-90.patch (from this issue https://drupal.org/node/800434).
However, the Messaging module bypasses drupal_mail() and calls drupal_mail_send() directly, therefore bypassing any code that specifies that mail shouldn't be sent. I suggest a small patch to check for $mail['send'] before actually sending the mail. Patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | messaging-send_mail-2169913-1.patch | 775 bytes | bdlangton |
Comments
Comment #1
bdlangton CreditAttribution: bdlangton commented