mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-06 16:53:34 +02:00
issue #1417 update PHPMailer from 5.2.21 to 6.5.1
Requires PHP 5.5, but Piwigo 12 is now requiring PHP 7 so it's fine.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
* @package functions\mail
|
||||
*/
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
|
||||
/**
|
||||
* Returns the name of the mail sender
|
||||
@@ -605,14 +606,8 @@ function pwg_mail($to, $args=array(), $tpl=array())
|
||||
$conf_mail = get_mail_configuration();
|
||||
}
|
||||
|
||||
// PHPMailer autoloader shows warnings with PHP 7.2. Solution to upgrade to PHPMailer 6
|
||||
// implies requiring PHP 5.5, which is bigger than current requirement for Piwigo.
|
||||
//
|
||||
// include_once(PHPWG_ROOT_PATH.'include/phpmailer/PHPMailerAutoload.php');
|
||||
//
|
||||
// replace by direct include of the classes:
|
||||
include_once(PHPWG_ROOT_PATH.'include/phpmailer/class.smtp.php');
|
||||
include_once(PHPWG_ROOT_PATH.'include/phpmailer/class.phpmailer.php');
|
||||
include_once(PHPWG_ROOT_PATH.'include/phpmailer/SMTP.php');
|
||||
include_once(PHPWG_ROOT_PATH.'include/phpmailer/PHPMailer.php');
|
||||
|
||||
$mail = new PHPMailer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user