function messaging_phpmailer_messaging in Messaging 6
Same name and namespace in other branches
- 5 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
- 6.4 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
- 6.2 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
- 6.3 messaging_phpmailer/messaging_phpmailer.module \messaging_phpmailer_messaging()
Implementation of hook_messaging
File
- messaging_phpmailer/
messaging_phpmailer.module, line 31 - 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',
'destination' => 'mail',
'send callback' => 'messaging_phpmailer_send_msg',
'type' => MESSAGING_TYPE_SEND,
'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;
}
}