mail delipery fixed
[mailer.git] / 0.2.1 / inc / functions.php
index 7088c4c07cc78948642fc5f35661907920f67006..f997c88d245ac41141da354d8dd968f8b0305584 100644 (file)
@@ -430,7 +430,7 @@ Message : ".$MSG."
 // Check if legacy or PHPMailer command
 // @private
 function CHECK_PHPMAILER_USAGE() {
 // 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 != ""));
 }
 
 /*
 }
 
 /*
@@ -445,6 +445,7 @@ function SEND_RAW_EMAIL ($to, $subject, $msg, $from) {
 
                // get new instance
                $mail = new PHPMailer();
 
                // get new instance
                $mail = new PHPMailer();
+               $mail->PluginDir  = PATH."inc/phpmailer/";
 
                $mail->IsSMTP();
                $mail->SMTPAuth   = true;
 
                $mail->IsSMTP();
                $mail->SMTPAuth   = true;