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'] = "
" . $message['body'] . "
"; $count += mimemail(variable_get('site_mail', ini_get('sendmail_from')), $to, $message['subject'], $message['body'], NULL,array(),NULL,array(),$mailkey) ? 1 : 0; } return $count; }