You are here

function hook_mailhandler_auth_failed in Mailhandler 6.2

Same name and namespace in other branches
  1. 7.2 mailhandler.api.php \hook_mailhandler_auth_failed()

Respond to a parsed message failing authentification.

Parameters

array $message: The mail message Feeds was trying to parse.

File

./mailhandler.api.php, line 13
Document hooks created by mailhandler.

Code

function hook_mailhandler_auth_failed($message) {

  // Log the failure to Recent Log Entries.
  watchdog('mailhandler', 'User could not be authenticated. Please check your Mailhandler authentication plugin settings.', array(), WATCHDOG_WARNING);

  // Alert the user.
  drupal_set_message(t('Oops, not able to authenticate mail.', array(), 'warning'));
}