// Check if legacy or PHPMailer command
// @private
function CHECK_PHPMAILER_USAGE() {
- return (((defined('SMTP_HOSTNAME')) && (defined('SMTP_USER')) && (defined('SMTP_PASSWORD'))) || ((SMTP_HOSTNAME != "") && (SMTP_USER != "")));
+ return ((defined('SMTP_HOSTNAME')) && (defined('SMTP_USER')) && (defined('SMTP_PASSWORD')) && (SMTP_HOSTNAME != "") && (SMTP_USER != ""));
}
/*
// get new instance
$mail = new PHPMailer();
+ $mail->PluginDir = PATH."inc/phpmailer/";
$mail->IsSMTP();
$mail->SMTPAuth = true;