[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/ -> class-phpmailer.php (source)

   1  <?php
   2  
   3  /**
   4   * The PHPMailer class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.
   5   */
   6  if ( function_exists( '_deprecated_file' ) ) {
   7      _deprecated_file(
   8          basename( __FILE__ ),
   9          '5.5.0',
  10          WPINC . '/PHPMailer/PHPMailer.php',
  11          __( 'The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace.' )
  12      );
  13  }
  14  
  15  require_once  __DIR__ . '/PHPMailer/PHPMailer.php';
  16  require_once  __DIR__ . '/PHPMailer/Exception.php';
  17  
  18  class_alias( PHPMailer\PHPMailer\PHPMailer::class, 'PHPMailer' );
  19  class_alias( PHPMailer\PHPMailer\Exception::class, 'phpmailerException' );


Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref