From 7db34b4bc14184990a910b8773e139dbb6dd2e3e Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 4 Jan 2017 18:12:04 +0100 Subject: [PATCH] fix PHPMailer smtp class loading when using SMTP transport (['smtp_host'] set) (#599) git cherry-pick --no-commit c2b456b --- include/functions_mail.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 9032d8311..b49736566 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -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'); -?> \ No newline at end of file +?>