You are here

function messaging_mime_mail_messaging in Messaging 6.2

Same name and namespace in other branches
  1. 5 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_messaging()
  2. 6.4 messaging_mime_mail/messaging_mime_mail.module \messaging_mime_mail_messaging()
  3. 6 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 13
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
        'group' => 'mail',
        // Class of send method
        'destination' => 'mail',
        // Account property to use as destination
        'type' => MESSAGING_TYPE_SEND,
        // Method type: push || pull
        'glue' => "<br>",
        // don't use <br/> nor <br /> for maximum HTML email client compatibility
        'footer' => "<br><br>--",
        // Separator for message footer
        'send callback' => 'messaging_mime_mail_send_msg',
      );
      return $info;
  }
}