Added implementation of hook_mail_alter().