I'm trying to implement an access check (a 'do-not-send' list query) just before emails are sent. I see how to modify the message, but how do I stop a message?.
HOOK_mail ($key, &$message, $params) {
if (TRUE) {
// -- Stop Message From Being Sent Here -- //
}
}
Is break;
adequate?