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