fix PHPMailer smtp class loading when using SMTP transport (['smtp_host'] set) (#599)

git cherry-pick --no-commit c2b456b
This commit is contained in:
plegall
2017-01-04 18:12:04 +01:00
parent e309cfdc8a
commit 7db34b4bc1
+2 -2
View File
@@ -607,7 +607,7 @@ function pwg_mail($to, $args=array(), $tpl=array())
$conf_mail = get_mail_configuration();
}
include_once(PHPWG_ROOT_PATH.'include/phpmailer/class.phpmailer.php');
include_once(PHPWG_ROOT_PATH.'include/phpmailer/PHPMailerAutoload.php');
$mail = new PHPMailer;
@@ -986,4 +986,4 @@ function pwg_send_mail_test($success, $mail, $args)
trigger_notify('functions_mail_included');
?>
?>