You are here

function phpmailer_mailengine in PHPMailer 6.3

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 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':
      $form['info']['#value'] = t('To configure your mail server settings, visit the <a href="@url">PHPMailer settings page</a>.', array(
        '@url' => url('admin/settings/phpmailer'),
      ));
      return $form;
    case 'multiple':
    case 'single':
    case 'send':
      module_load_include('inc', 'phpmailer', 'includes/phpmailer.mimemail');
      return mimemail_phpmailer_send($message);
  }
}