'Mime Mail', 'name' => t('Mime Mail'), // Name for display 'description' => t('Send e-mails using Mime Mail module.'), 'address_type' => 'mail', // Type of address 'group' => 'mail', // Class of send method 'glue' => "
", // don't use
nor
for maximum HTML email client compatibility 'footer' => "-- \n", // Separator for message footer 'send callback' => 'messaging_mime_mail_send_msg', // Sending callback 'class' => 'Messaging_Method_Mail', 'filter' => 'messaging_html', // Default filter for this format 'anonymous' => TRUE, // This method supports anonymous destinations ); return $info; } } /** * Send mime mail message to user account * * @param $destination * Destination email address * @param $message * Message array */ function messaging_mime_mail_send_msg($destination, $message, $params) { // mimemail($sender, $recipient, $subject, $body, $plaintext = NULL, $headers = array(), $text = NULL, $attachments = array(), $mailkey = '') return mimemail($params['from'], $destination, $message->get_subject(), $message->get_body(), NULL, $params['headers'], NULL, $message->get_files(), $params['id']); } /** * Implementation of hook_disable() */ function messaging_mime_mail_disable() { messaging_method_disable('mimemail'); }