t('Mime Mail'), // Name for display
'destination' => 'mail', // Account property to use as destination
'send' => 'messaging_mime_mail_send', // Sending callback
'type' => MESSAGING_TYPE_PUSH, // Method type: push || pull
'glue' => "
",
'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($destination, $message) {
$mailkey = 'message-'.$message['type'];
$count = 0;
foreach ($destination as $to) {
$message['body'] = "