You are here

function messaging_phpmailer_messaging in Messaging 5

Same name and namespace in other branches
  1. 6.4 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
  2. 6 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
  3. 6.2 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
  4. 6.3 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()

Implementation of hook_messaging

File

messaging_phpmailer/messaging_phpmailer.module, line 11
HTML Mail using PHPMailer. Messaging method plug-in.

Code

function messaging_phpmailer_messaging($op = 'info') {
  switch ($op) {
    case 'send methods':
      $info['html_mail'] = array(
        'name' => t('HTML Mail'),
        'group' => 'mail',
        'destination' => 'mail',
        'send' => 'messaging_phpmailer_send_msg',
        'type' => MESSAGING_TYPE_PUSH,
        'glue' => "<br>",
        // don't use <br/> nor <br /> for maximum HTML email client compatibility
        'footer' => "<br><br>--",
        'description' => t('Send HTML e-mails using PHPMailer'),
      );
      return $info;
  }
}