t('Mime Mail'), // Name for display
'group' => 'mail', // Class of send method
'destination' => 'mail', // Account property to use as destination
'send' => 'messaging_mime_mail_send_msg', // Sending callback
'type' => MESSAGING_TYPE_PUSH, // Method type: push || pull
'glue' => "
", // don't use
nor
for maximum HTML email client compatibility
'footer' => "
--", // Separator for message footer
);
return $info;
}
}
/**
* Send mime mail message to user account
*
* @param $destination
* Array of e-mails
* @param $message
* Message array
*/
function messaging_mime_mail_send_msg($destination, $message, $params = array()) {
$params = messaging_mail_params($message, $params);
return mimemail($params['from'], $destination, $message['subject'], $message['body'], NULL, $params['headers'], NULL, array(), $params['mailkey']);
}