Even with the recently updated SparkPost plugin, we're still seeing a 'Deprecated' notice on every request:
Deprecated: class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead.
The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /var/www/html/website/wp-includes/functions.php on line 4963
Problem
Even with the recently updated SparkPost plugin, we're still seeing a 'Deprecated' notice on every request:
Triggered by: https://github.com/SparkPost/wordpress-sparkpost/blob/master/mailer.http.class.php#L8
Suggested fix
Instead of using
You can use the following to get rid of the deprecated notice: