You are here

function phpmailer_enabled in PHPMailer 7.4

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

Determine if PHPMailer is used to deliver e-mails.

5 calls to phpmailer_enabled()
phpmailer_disable in ./phpmailer.install
Implements hook_disable().
phpmailer_enable in ./phpmailer.install
Implements hook_enable().
phpmailer_form_mimemail_admin_settings_alter in ./phpmailer.module
Implements hook_form_FORM_ID_alter().
phpmailer_settings_form in ./phpmailer.admin.inc
Form builder for both the Mime Mail settings and our own settings page.
phpmailer_settings_form_submit in ./phpmailer.admin.inc
Form submit function.

File

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

Code

function phpmailer_enabled() {

  // We need to rely on our 'smtp_on' variable, since PHPMailer may not be
  // configured as the default mail system.
  return (bool) variable_get('smtp_on', 0);
}