function messaging_mail_send_msg in Messaging 6.4
Same name and namespace in other branches
- 5 messaging_mail/messaging_mail.module \messaging_mail_send_msg()
- 6 messaging_mail/messaging_mail.module \messaging_mail_send_msg()
- 6.2 messaging_mail/messaging_mail.module \messaging_mail_send_msg()
- 6.3 messaging_mail/messaging_mail.module \messaging_mail_send_msg()
Send mail message to user account
This is a callback function that will be invoked from messaging delivery methods
Parameters
$destination: Single email address
$message: Message array
$params: Optional parameters for this method type
See also
1 string reference to 'messaging_mail_send_msg'
- messaging_mail_messaging in messaging_mail/
messaging_mail.module - Implementation of hook_messaging()
File
- messaging_mail/
messaging_mail.module, line 133 - Simple mail using Drupal API. Messaging method plug-in
Code
function messaging_mail_send_msg($address, $message, $params = array()) {
// Build the message in drupal mail format
$mail = $message
->send_method()
->mail_build($address, $message, $params);
return drupal_mail_send($mail);
}