2007-05-04 21:28:50 +00:00
|
|
|
<?php
|
|
|
|
|
2013-02-28 18:33:13 +00:00
|
|
|
/**
|
2020-06-12 15:47:07 +00:00
|
|
|
* The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
|
2013-02-28 18:33:13 +00:00
|
|
|
*/
|
2020-06-12 21:10:08 +00:00
|
|
|
if ( function_exists( '_deprecated_file' ) ) {
|
2020-06-12 21:42:09 +00: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 21:10:08 +00:00
|
|
|
}
|
2020-06-12 21:42:09 +00:00
|
|
|
|
2020-07-21 12:58:02 +00:00
|
|
|
require_once __DIR__ . '/PHPMailer/PHPMailer.php';
|
|
|
|
require_once __DIR__ . '/PHPMailer/Exception.php';
|
2014-03-03 20:25:14 +00:00
|
|
|
|
2020-06-12 15:47:07 +00:00
|
|
|
class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
|
2020-06-12 21:42:09 +00:00
|
|
|
class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );
|