function phpmailer_mailengine in PHPMailer 6
Same name and namespace in other branches
- 8.3 phpmailer.module \phpmailer_mailengine()
- 5.2 phpmailer.module \phpmailer_mailengine()
- 5 phpmailer.module \phpmailer_mailengine()
- 6.3 phpmailer.module \phpmailer_mailengine()
- 6.2 phpmailer.module \phpmailer_mailengine()
- 7.4 phpmailer.module \phpmailer_mailengine()
- 7.3 phpmailer.module \phpmailer_mailengine()
Implementation of hook_mailengine().
File
- ./
phpmailer.module, line 64 - This module integrates PHPMailer with Drupal, both as native drupal_mail() wrapper, and as part of the Mime Mail module.
Code
function phpmailer_mailengine($op, $message = array()) {
switch ($op) {
case 'name':
return t('PHPMailer');
case 'description':
return t('Mailing engine using the PHPMailer library.');
case 'settings':
module_load_include('inc', 'phpmailer', 'phpmailer.admin');
return phpmailer_settings_form();
case 'multiple':
case 'single':
case 'send':
module_load_include('inc', 'phpmailer', 'includes/mimemail');
return mimemail_phpmailer_send($message);
}
}