You are here

function phpmailer_mailengine in PHPMailer 6

Same name and namespace in other branches
  1. 8.3 phpmailer.module \phpmailer_mailengine()
  2. 5.2 phpmailer.module \phpmailer_mailengine()
  3. 5 phpmailer.module \phpmailer_mailengine()
  4. 6.3 phpmailer.module \phpmailer_mailengine()
  5. 6.2 phpmailer.module \phpmailer_mailengine()
  6. 7.4 phpmailer.module \phpmailer_mailengine()
  7. 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);
  }
}