Include PHPMailer Exception in pwg_mail()

Otherwise if an exception is to be thrown it results in
Fatal error: Uncaught Error: Class 'PHPMailer\PHPMailer\Exception' not found
See https://piwigo.org/forum/viewtopic.php?id=31942
This commit is contained in:
Eike Rathke
2022-03-19 13:18:20 +01:00
committed by Pierrick Le Gall
parent fd82502f7c
commit 40a127424e
+1
View File
@@ -606,6 +606,7 @@ function pwg_mail($to, $args=array(), $tpl=array())
$conf_mail = get_mail_configuration();
}
include_once(PHPWG_ROOT_PATH.'include/phpmailer/Exception.php');
include_once(PHPWG_ROOT_PATH.'include/phpmailer/SMTP.php');
include_once(PHPWG_ROOT_PATH.'include/phpmailer/PHPMailer.php');