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.
By pillarsdotnet on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.12
Issue links:
Description:
Functions implementing hook_mail_alter()
may have reason to cancel sending by the drupal_mail()
function. Formerly, this was done by setting $message['To']
to an invalid address. Now they may set $message['send'] = FALSE
to accomplish the same goal in a cleaner way.
Impacts:
Module developers