function phpmailer_enable in PHPMailer 6.2
Same name and namespace in other branches
- 6.3 phpmailer.module \phpmailer_enable()
- 7.4 phpmailer.install \phpmailer_enable()
- 7.3 phpmailer.install \phpmailer_enable()
Implementation of hook_enable().
File
- ./
phpmailer.module, line 174 - Integrates the PHPMailer library for SMTP e-mail delivery.
Code
function phpmailer_enable() {
if (!phpmailer_enabled() && !(module_exists('mimemail') && variable_get('mimemail_engine', 'mimemail') == 'phpmailer')) {
$t = get_t();
drupal_set_message($t('PHPMailer has been installed, but is currently disabled. <a href="@settings-url">Configure it now</a>.', array(
'@settings-url' => url('admin/settings/phpmailer'),
)));
}
}