Title: PHPMailer errors
Last modified: December 9, 2021

---

# PHPMailer errors

 *  [bocinet](https://wordpress.org/support/users/bocinet/)
 * (@bocinet)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/phpmailer-errors/)
 * Hello!
 * Every time i want to set up **any** smtp mailer plugin or simply just reset an
   account password this message appears:
 * `Fatal error: Uncaught Error: Call to undefined function create_function() in/
   wp-includes/PHPMailer/Exception.php:48 Stack trace: #0 /wp-includes/PHPMailer/
   Exception.php(6): Foo->point() #1 /wp-includes/PHPMailer/Exception.php(275): 
   Foo->__construct() #2 /wp-content/plugins/easy-wp-smtp/easy-wp-smtp.php(220):
   require_once('...') #3 /wp-content/plugins/easy-wp-smtp/class-easywpsmtp-admin.
   php(206): EasyWPSMTP->test_mail() #4 /wp-includes/class-wp-hook.php(303): swpsmtp_settings()#
   5 /wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #6 /wp-includes/
   plugin.php(470): WP_Hook->do_action() #7 /wp-admin/admin.php(259): do_action()#
   8 /wp-admin/options-general.php(10): require_once('...') #9 {main} thrown in /
   wp-includes/PHPMailer/Exception.php on line 48`
 * I use the newest wordpress version and php8.0 with all the modules necessary.
 * What’s wrong? :/
    -  This topic was modified 4 years, 5 months ago by [bocinet](https://wordpress.org/support/users/bocinet/).

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [4 years, 5 months ago](https://wordpress.org/support/topic/phpmailer-errors/#post-15147700)
 * That seems to be PHP 8 related. Seee [https://lindevs.com/function-create_function-has-been-removed-in-php-8-0/](https://lindevs.com/function-create_function-has-been-removed-in-php-8-0/)
 * The wp-smtp plugin is not PHP 8 ready at this time. I recommend asking at [https://wordpress.org/support/plugin/wp-smtp/#new-post](https://wordpress.org/support/plugin/wp-smtp/#new-post)
   so the plugin’s developers and support community can help you with this.

Viewing 1 replies (of 1 total)

The topic ‘PHPMailer errors’ is closed to new replies.

## Tags

 * [exception](https://wordpress.org/support/topic-tag/exception/)
 * [phpmailer](https://wordpress.org/support/topic-tag/phpmailer/)
 * [resetpassword](https://wordpress.org/support/topic-tag/resetpassword/)
 * [sendmail](https://wordpress.org/support/topic-tag/sendmail/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/phpmailer-errors/#post-15147700)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
