You are here

function messaging_mime_mail_messaging in Messaging 6.4

Same name and namespace in other branches
  1. 5 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_messaging()
  2. 6 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_messaging()
  3. 6.2 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_messaging()
  4. 6.3 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_messaging()

Implementation of hook_messaging

File

messaging_mime_mail/messaging_mime_mail.module, line 10
Mime mail using Drupal API. Messaging method plug-in

Code

function messaging_mime_mail_messaging($op = 'info') {
  switch ($op) {
    case 'send methods':
      $info['mimemail'] = array(
        'title' => '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' => "<br>",
        // don't use <br/> nor <br /> 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,
      );
      return $info;
  }
}