You are here

function drupal_mail_wrapper in Mail System 6

Same name and namespace in other branches
  1. 6.2 mailsystem.inc \drupal_mail_wrapper()

Sends a prepared email message.

Parameters

array $message: The email message to be sent.

Return value

TRUE if the message was successfully sent; otherwise FALSE.

File

./mailsystem.inc, line 17
Provide drupal_mail_wrapper() function for the smtp_library variable.

Code

function drupal_mail_wrapper(array $message) {
  $mailsystem = drupal_mail_system($message['module'], $message['key']);
  return $mailsystem
    ->mail($message);
}