function phpmailer_get_path in PHPMailer 6.3
Get path to PHPMailer library.
2 calls to phpmailer_get_path()
- DrupalPHPMailer::__construct in includes/
phpmailer.class.inc - Constructor.
- phpmailer_load_library in ./
phpmailer.module - Load PHPMailer class from libraries path.
File
- ./
phpmailer.module, line 216 - Integrates the PHPMailer library for SMTP e-mail delivery.
Code
function phpmailer_get_path() {
$library_path = libraries_get_path('phpmailer');
if (!file_exists('./' . $library_path . '/class.phpmailer.php')) {
// Provide backwards compatibility for existing installations of
// PHPMailer module.
$library_path = drupal_get_path('module', 'phpmailer') . '/phpmailer';
if (!file_exists('./' . $library_path . '/class.phpmailer.php')) {
return FALSE;
}
}
return $library_path;
}