The check failed: wp_mail() returned false, and WordPress reported no error text. That combination is unusual, and it narrows the search.
When WordPress’s own mail code fails, it says why. PHPMailer, the library inside wp_mail(), throws an error; wp_mail() catches it, passes the message to the wp_mail_failed hook, and the plugin logs it. A failure with no message means the decision was made somewhere else. On a working WordPress install there are three places it can be made, and all three belong to a plugin.
A plugin took over sending
A pre_wp_mail filter returned false. pre_wp_mail runs at the start of wp_mail(). If any plugin returns a value from it, wp_mail() stops there and returns that value. Nothing else in the function runs, so wp_mail_failed never fires.
A plugin replaced wp_mail(). wp_mail() is a pluggable function: the first plugin to define its own version wins, and WordPress uses that version instead of core’s. A replacement that returns false without firing wp_mail_failed produces this exact result. Some hosts install a replacement as a must-use plugin, which does not appear in the normal plugin list.
A plugin replaced PHPMailer. Core’s wp_mail() returns whatever PHPMailer’s send() returns. A mailer plugin that swaps in its own PHPMailer class can report failure by returning false, without the error that would fire wp_mail_failed.
Find the plugin
-
See who owns
wp_mail(). With WP-CLI, this prints the file that defines the function WordPress is using:wp eval '$f = new ReflectionFunction( "wp_mail" ); echo $f->getFileName(), PHP_EOL;'If the answer is not
wp-includes/pluggable.php, the plugin in that path handles all mail on the site. -
See whether anything hooks
pre_wp_mail. This printstrueif any plugin does:wp eval 'var_dump( has_filter( "pre_wp_mail" ) );' -
Turn mail plugins off one at a time. Mailer, queue, logging and “disable email” plugins are the usual suspects. After each one, press Send test now on the Email Check screen. Do this on a staging copy if the site takes orders or sign-ups.
-
Read the mailer plugin’s own log. If a mailer plugin is installed, its log often holds the reason it did not pass on.
When you find the plugin, its settings or its support forum is the next stop. If it is meant to block mail (a staging setup, for example), the check is doing its job: this site cannot send.
Background
The wp_mail_failed hook, what it catches, and what it doesn’t covers every path through wp_mail() and which ones stay silent, checked against the WordPress core source and the three main mailer plugins.
