You are here

function messaging_mime_mail_send_msg in Messaging 6.3

Same name and namespace in other branches
  1. 5 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_send_msg()
  2. 6.4 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_send_msg()
  3. 6 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_send_msg()
  4. 6.2 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_send_msg()

Send mime mail message to user account

Parameters

$destination: Destination email address

$message: Message array

1 string reference to 'messaging_mime_mail_send_msg'
messaging_mime_mail_messaging in messaging_mime_mail/messaging_mime_mail.module
Implementation of hook_messaging

File

messaging_mime_mail/messaging_mime_mail.module, line 38
Mime mail using Drupal API. Messaging method plug-in

Code

function messaging_mime_mail_send_msg($destination, $message, $params = array()) {

  // Get parameters without invoking hook_mail_alter()
  $mail = messaging_mail_prepare($destination, $message, $params, FALSE);

  // mimemail($sender, $recipient, $subject, $body, $plaintext = NULL, $headers = array(), $text = NULL, $attachments = array(), $mailkey = '')
  return mimemail($mail['from'], $mail['to'], $mail['subject'], $mail['body'], NULL, $mail['headers'], NULL, $mail['attachments'], '');
}