function messaging_phpmailer_send_msg in Messaging 6.4
Same name and namespace in other branches
- 5 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_send_msg()
- 6 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_send_msg()
- 6.2 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_send_msg()
- 6.3 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_send_msg()
Send mail message to user account. Supports bulk sending
Parameters
$destination: Single email address
$message: Message array
1 string reference to 'messaging_phpmailer_send_msg'
- messaging_phpmailer_messaging in messaging_phpmailer/
messaging_phpmailer.module - Implementation of hook_messaging
File
- messaging_phpmailer/
messaging_phpmailer.module, line 128 - HTML Mail using PHPMailer. Messaging method plug-in.
Code
function messaging_phpmailer_send_msg($destination, $message, $params = array()) {
// Build the message in drupal mail format
$mail = $message
->send_method()
->mail_build($destination, $message, $params);
return messaging_phpmailer_drupal_mail($mail);
}