You are here

function phpmailer_enabled in PHPMailer 5.2

Same name and namespace in other branches
  1. 6.3 phpmailer.module \phpmailer_enabled()
  2. 6.2 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.

3 calls to phpmailer_enabled()
phpmailer_disable in ./phpmailer.module
Implementation of hook_disable().
phpmailer_form_alter in ./phpmailer.module
Implementation of hook_form_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');
}