You are here

function messaging_phpmailer_messaging in Messaging 6.4

Same name and namespace in other branches
  1. 5 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 30
HTML Mail using PHPMailer. Messaging method plug-in.

Code

function messaging_phpmailer_messaging($op = 'info') {
  switch ($op) {
    case 'send methods':
      $info['phpmailer'] = array(
        'title' => 'PHPMailer',
        'name' => t('HTML Mail'),
        'group' => 'mail',
        'send callback' => 'messaging_phpmailer_send_msg',
        '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'),
        'class' => 'Messaging_Method_Mail',
        'address_type' => 'mail',
      );
      return $info;
  }
}