You are here

function phpmailer_enabled in PHPMailer 6.2

Same name and namespace in other branches
  1. 5.2 phpmailer.module \phpmailer_enabled()
  2. 6.3 phpmailer.module \phpmailer_enabled()
  3. 7.4 phpmailer.module \phpmailer_enabled()
  4. 7.3 phpmailer.module \phpmailer_enabled()

Determine if PHPMailer is used to deliver e-mails.

4 calls to phpmailer_enabled()
phpmailer_disable in ./phpmailer.module
Implementation of hook_disable().
phpmailer_enable in ./phpmailer.module
Implementation of hook_enable().
phpmailer_form_mimemail_admin_settings_alter in ./phpmailer.module
Implementation of hook_form_FORM_ID_alter().
phpmailer_settings_form_submit in ./phpmailer.admin.inc
Form submit function.

File

./phpmailer.module, line 62
Integrates the PHPMailer library for SMTP e-mail delivery.

Code

function phpmailer_enabled() {
  return strpos(variable_get('smtp_library', ''), 'phpmailer');
}