2007-05-04 23:28:50 +02:00
|
|
|
<?php
|
|
|
|
|
2013-02-28 19:33:13 +01:00
|
|
|
/**
|
2020-06-12 17:47:07 +02:00
|
|
|
* The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
|
2013-02-28 19:33:13 +01:00
|
|
|
*/
|
2020-06-12 23:10:08 +02:00
|
|
|
if ( function_exists( '_deprecated_file' ) ) {
|
2020-06-12 23:42:09 +02:00
|
|
|
_deprecated_file(
|
|
|
|
basename( __FILE__ ),
|
|
|
|
'5.5.0',
|
|
|
|
WPINC . '/PHPMailer/PHPMailer.php',
|
|
|
|
__( 'The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' )
|
|
|
|
);
|
2020-06-12 23:10:08 +02:00
|
|
|
}
|
2020-06-12 23:42:09 +02:00
|
|
|
|
2020-07-21 14:58:02 +02:00
|
|
|
require_once __DIR__ . '/PHPMailer/PHPMailer.php';
|
|
|
|
require_once __DIR__ . '/PHPMailer/Exception.php';
|
2014-03-03 21:25:14 +01:00
|
|
|
|
2020-06-12 17:47:07 +02:00
|
|
|
class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
|
2020-06-12 23:42:09 +02:00
|
|
|
class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );
|