You are here

function smtp_failed_messages in SMTP Authentication Support 7

Same name and namespace in other branches
  1. 7.2 smtp.module \smtp_failed_messages()

Store failed messages for later.

Parameters

array $new_message:

Return value

array All messages that have been saved.

1 call to smtp_failed_messages()
SmtpMailSystem::mailWithoutQueue in ./smtp.mail.inc

File

./smtp.module, line 152
Enables Drupal to send e-mail directly to an SMTP server.

Code

function smtp_failed_messages($message) {
  $queue = DrupalQueue::get('smtp_failure_queue');
  $queue
    ->createItem($message);
}