WordPress / health-check

Health Check is a WordPress plugin that will perform a number of checks on your WordPress install to detect common configuration errors and known issues.
GNU General Public License v2.0
174 stars 51 forks source link

Mail checker: Add the error from `wp_mail` #431

Closed Clorith closed 2 years ago

Clorith commented 2 years ago

Short introduction

Implement error captures from wp_mail, as per #364

Description of what the PR accomplishes

When sending emails, there can be many reasons it fails, WordPress exposes general errors from the phpmailer library through the wp_mail_failed action, which the Mail Checker tool can hook into and capture, now that the plugin requires minimum WordPress version 4.4

Screenshots

Mail Checker showing a failure, with the included error message that the sender address is invalid