mirror of
https://github.com/e107inc/e107.git
synced 2025-08-20 05:11:42 +02:00
Issue #4299 - PHP8 compatibility fixes.
This commit is contained in:
@@ -58,9 +58,17 @@ Valid subparameters (where required):
|
||||
$_GET['m'] - id of mail info in db
|
||||
$_GET['t'] - id of target info in db
|
||||
*/
|
||||
// header('Content-Encoding: none'); // turn off gzip.
|
||||
// header('Content-Encoding: none'); // turn off gzip.
|
||||
|
||||
use PHPMailer\PHPMailer\PHPMailer;
|
||||
use PHPMailer\PHPMailer\SMTP;
|
||||
use PHPMailer\PHPMailer\POP3;
|
||||
use PHPMailer\PHPMailer\Exception;
|
||||
|
||||
require_once('../class2.php');
|
||||
|
||||
|
||||
|
||||
if (!getperms('W'))
|
||||
{
|
||||
e107::redirect('admin');
|
||||
@@ -978,7 +986,8 @@ class mailout_main_ui extends e_admin_ui
|
||||
function testPage()
|
||||
{
|
||||
|
||||
require_once(e_HANDLER. 'phpmailer/PHPMailerAutoload.php');
|
||||
require_once(e_HANDLER.'vendor/autoload.php');
|
||||
// require_once(e_HANDLER. 'phpmailer/PHPMailerAutoload.php');
|
||||
|
||||
/** @var SMTP $smtp */
|
||||
$smtp = new SMTP;
|
||||
|
Reference in New Issue
Block a user