You are here

protected static function Messaging_Mail_Method::mail_send in Messaging 7

Actually send mail through Drupal system

Parameters

$mail: Built Drupal mail array, not rendered

$message: Original message object

1 call to Messaging_Mail_Method::mail_send()
Messaging_Mail_Method::send_address in messaging_mail/messaging_mail.inc
Send message to address
1 method overrides Messaging_Mail_Method::mail_send()
Messaging_HTML_Mail_Method::mail_send in messaging_htmlmail/messaging_htmlmail.inc
Actually send mail through Drupal system

File

messaging_mail/messaging_mail.inc, line 63
Drupal Messaging Framework - Send_Method class file

Class

Messaging_Mail_Method
Base class for mail sending methods

Code

protected static function mail_send($mail, $message) {

  // Retrieve the responsible implementation for this message.
  $system = drupal_mail_system($mail['module'], $mail['key']);

  // Format the message body, last chance for formatting
  $mail = $system
    ->format($mail);
  return $system
    ->mail($mail);
}