Title: Issue with PHP 8
Last modified: July 20, 2021

---

# Issue with PHP 8

 *  Resolved [midnitedev](https://wordpress.org/support/users/midnitedev/)
 * (@midnitedev)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/issue-with-php-8-3/)
 * We recently upgraded our PHP version to 8 and we started noticing an issue on
   the site whenever it requires sending off an email. We use PostSMTP plugin to
   send our emails via SendGrid and it works with some plugins that utilize it such
   as WP Contact Form 7.
 * After troubleshooting, we found these issues related to PostSMTP:
 * PHP Fatal error: Uncaught Error: Class ‘SendGrid\Mail\Mail’ not found in /Applications/
   MAMP/htdocs/project/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanSendGridMailEngine.
   php:47
 * Disabling the plugin fixes the issues and allows us to not experience the error
   pages we encounter. However, we want to utilize its SendGrid integration because
   of the platform’s features.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/issue-with-php-8-3/#post-14761089)
 * Hi [@midnitedev](https://wordpress.org/support/users/midnitedev/),
 * PHP 8.x is not supported as yet, flagging to developer for consideration in future
   release.
 * Kind Regards,
    Tim
 *  [Tim](https://wordpress.org/support/users/tneville/)
 * (@tneville)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/issue-with-php-8-3/#post-14761092)
 * [@yehudah](https://wordpress.org/support/users/yehudah/) – info for PHP8.x
 *  [kruglikov](https://wordpress.org/support/users/kruglikov/)
 * (@kruglikov)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-php-8-3/#post-14988411)
 * It’s not related to php 8.
    I get this error on PHP 7.2 too.
 * Look at error line /plugins/post-smtp/Postman/Postman-Mail/PostmanSendGridMailEngine.
   php:47
 * 47 $email = new \SendGrid\Mail\Mail();
 * It’s something related to autoloader.
    -  This reply was modified 4 years, 7 months ago by [kruglikov](https://wordpress.org/support/users/kruglikov/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with PHP 8’ is closed to new replies.

 * ![](https://ps.w.org/post-smtp/assets/icon-128x128.gif?rev=3209655)
 * [Post SMTP – Complete Email Deliverability and SMTP Solution with Email Logs, Alerts, Backup SMTP & Mobile App](https://wordpress.org/plugins/post-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/post-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/post-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/post-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-smtp/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [kruglikov](https://wordpress.org/support/users/kruglikov/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/issue-with-php-8-3/#post-14988411)
 * Status: resolved