Sending Aborted by Hook

Problem

You see the following error when attempting to send an email fails:

Email Send Aborted By Hook

Cause

This error indicates that a custom hook has prevented the email from sending.

Troubleshooting

To troubleshoot this error:

  1. Enable Hooks Debug Mode in the Other tab at Configuration () > System Settings > General Settings.
  2. Replicate the error again.
  3. Disable Hooks Debug Mode.
  4. Review the Activity Log at Configuration () > System Logs.
  5. Locate the Email Send Aborted By Hook error in the log.

After locating the error, look over the adjacent entries for a series of three lines that look similar to the following:

    Hooks Debug: Hook File Loaded: /path/to/the/hook_file.php
    Hooks Debug: Hook Defined for Point: EmailPreSend - Priority: 1 - Function Name: (anonymous function)
    Hooks Debug: Attempting to load hook file: /path/to/the/hook_file.php

The file in the Hook File Loaded and Attempting to load hook file entries is the hook responsible for the Email Send Aborted By Hook error.

Solution

Contact the developer of that hook file for more information.

Last modified: October 30, 2024