You are here

function phpmailer_mailengine in PHPMailer 5.2

Same name and namespace in other branches
  1. 8.3 phpmailer.module \phpmailer_mailengine()
  2. 5 phpmailer.module \phpmailer_mailengine()
  3. 6.3 phpmailer.module \phpmailer_mailengine()
  4. 6 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 79
Integrates the PHPMailer library for SMTP e-mail delivery.

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':
      require_once drupal_get_path('module', 'phpmailer') . '/phpmailer.admin.inc';
      return phpmailer_settings_form();
    case 'multiple':
    case 'single':
    case 'send':
      require_once drupal_get_path('module', 'phpmailer') . '/includes/phpmailer.mimemail.inc';
      return mimemail_phpmailer_send($message);
  }
}