mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 17:23:04 +02:00
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:
committed by
Pierrick Le Gall
parent
fd82502f7c
commit
40a127424e
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user