Linux 软件免费装
Banner图

nanoPost Email Check

开发者 nanopost
更新时间 2026年11月27日 19:08
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

email smtp wp_mail test email email monitoring

下载

1.7.0 1.2.0 1.3.1 1.4.0 1.5.0 1.0.0 1.1.0 1.6.0 1.2.1 1.3.0 1.3.2 1.3.3

详情介绍:

WordPress can stop sending email while the rest of your site keeps working. A host might disable PHP's mail() function, an SMTP password might change, or a plugin update might reset your mail settings. You may only notice when a customer reports a missing order confirmation. nanoPost Email Check sends a test email on a schedule and logs each result. It shows a notice in wp-admin when a check fails or the scheduled checks stop running. What to expect
  1. Set up on one screen. Choose the mailbox for the test emails and how often to check, then press Send test now to see a first result.
  2. Then it runs on its own. A short test email is sent on schedule, daily by default. The plugin logs every result.
  3. When sending breaks, a notice in wp-admin shows the error and links to an explanation of it. With a webhook set, a message also goes to Slack, Google Chat, Discord or another service that accepts a webhook, so the alert does not depend on the email that just failed.
  4. When it is fixed, the next passing check clears the notice, and the webhook sends a recovery message.
  5. If the checks themselves stop, for example because WP-Cron is not running, a separate notice tells you.
Who it is for How it differs from SMTP and email log plugins SMTP and email log plugins send and record the site's real mail, and some of them alert when a message fails. Those logs and alerts concern messages the site actually sends. Email Check sends its own test on a schedule, so it can check on a day the site sends nothing else, and it tells you when the tests themselves have stopped. The test goes through wp_mail(), so an SMTP plugin that handles wp_mail() sends it through its configured mailer. Email Check does not replace or configure the mailer. Features What a pass means Each check sends a short test message through wp_mail(), WordPress's email function. The plugin records whether the call succeeded. If it fails, the log includes any error text reported through wp_mail_failed, such as SMTP Error: Could not authenticate. A successful check does not confirm delivery. Check the recipient mailbox to make sure the test message arrived. The plugin screen is at Tools > Email Check. Free. No paid version. Full documentation: nanopo.st/email-check-plugin. Source code: GitHub. Writing about the plugin? The reviewer's guide has the facts, a test-site walkthrough and a press kit.

安装:

  1. Install the plugin from Plugins > Add Plugin (Add New Plugin in older WordPress versions) and activate it, or upload the nanopost-email-check folder to /wp-content/plugins/.
  2. Go to Tools > Email Check.
  3. Enter the address that should receive the test emails, or leave it empty to use the site's Administration Email Address. Use a mailbox someone reads, at a different provider from the site if you can. To send each test to more than one address, enter up to 3 addresses separated by commas.
  4. Choose how often to check, and save.
  5. Press Send test now and check that the email arrives.
The first scheduled check runs one interval after activation. Changing the schedule starts the count again. With WP-CLI: wp plugin install nanopost-email-check --activate wp email-check settings set recipient alerts@example.com wp email-check run See "Can I set it up from the command line?" below.

屏幕截图:

  • The notice in wp-admin when a check fails, with a link to decode the error.
  • The notice when scheduled checks have stopped running.
  • An alert in a chat app when a check fails, sent through the optional webhook.

常见问题:

Does a pass mean my email is delivered?

No. A pass means WordPress handed the message to its mail system without an error. The message can still bounce or go to spam after that. The test email in your inbox is the proof of delivery. Some plugins also make every check pass: a plugin that disables email on staging sites, or a queue plugin that accepts messages and sends them later.

Does the plugin send email to my users or customers?

No. It sends test emails only to the address or addresses you set (at most 3).

Does the plugin send data to nanoPost?

Only if you connect the site to nanoPost on the plugin screen. Without a connection, nothing is sent to nanoPost. See "External services" below for what a connected site sends.

What does connecting to nanoPost add?

A connected site sends each test email to nanoPost instead of the recipient you set. nanoPost shows whether the email arrived, with its SPF, DKIM and DMARC results ("Send test now" shows this proof of arrival on the plugin screen), and alerts you when a test does not arrive. Connecting is optional, and the plugin works in full without it. Disconnect on the plugin screen at any time: test emails then go to your recipient again.

The notice says the checks have stopped. What does that mean?

No scheduled check has finished for twice the interval. Usually WP-Cron is not running them: it runs when people visit the site, so on a site with few visitors, or when DISABLE_WP_CRON is set without a server cron job, scheduled events stop. Less often the check starts but crashes, for example with a PHP error in a mail plugin; the PHP error log then shows the cause. The help link in the notice explains how to fix it.

Can I get alerts somewhere other than email?

Yes. Enter a webhook URL on the plugin screen. Slack and Google Chat incoming webhooks work directly. For Discord, add /slack to the end of the webhook URL. Automation services can pass the message on to SMS, Microsoft Teams or other tools.

Can I set it up from the command line?

Yes, with WP-CLI. The wp email-check command has these subcommands:

  • wp email-check settings get and wp email-check settings set <key> <value>: show or change a setting. The keys are recipient, interval (twicedaily, daily or weekly) and webhook_url. A value is checked with the same rules as the plugin screen. An invalid value changes nothing and exits with 1.
  • wp email-check run: send a test email now. The log shows "WP-CLI" as what started it. Exits with 0 when the check passed and 1 when it failed.
  • wp email-check status: show whether the checks run and pass, and whether WP-Cron is disabled or has stopped running events. Add --format=json for scripts. Exits with 0 when all is well, 1 when the last check failed, 2 when scheduled checks have stopped or are not scheduled, and 3 when no check has run yet.
  • wp email-check test-alert: send a test alert to the saved webhook URL. Exits with 0 when the receiver accepted it, and 1 otherwise.
run and test-alert have no once-a-minute limit. On multisite, choose the site with --url. For details, run wp help email-check, or read settings in code and WP-CLI.

Does it work on multisite?

Yes. Each site runs its own checks, with its own settings, log and notices. Network activation schedules the checks on every site, and on each new site. On a network of more than 10,000 sites, each site is scheduled on its next request instead. On a network where all sites use the same mail setup, activating the plugin on the main site is enough: network activation then sends one test email per site, which repeats the same check.

Can I set the settings in wp-config.php?

Yes. Add any of these constants to wp-config.php or a must-use plugin: define( 'NANOPOST_EMAIL_CHECK_RECIPIENT', 'alerts@example.com' ); define( 'NANOPOST_EMAIL_CHECK_INTERVAL', 'daily' ); // twicedaily, daily or weekly define( 'NANOPOST_EMAIL_CHECK_WEBHOOK_URL', 'https://hooks.slack.com/services/...' ); A value set in code wins over the plugin screen, and the screen shows it read-only. It must pass the same checks as the screen: an invalid value is ignored, and the plugin screen says so. On multisite, a constant applies to every site. Developers can also use the nanopost_email_check_settings filter, which gets the array of settings (recipient, interval, webhook_url).

What happens to the data when I delete the plugin?

Deleting the plugin removes its settings, the log, the webhook state, the dismissed-notice records and the scheduled event. With WP-CLI, use wp plugin uninstall nanopost-email-check --deactivate: wp plugin delete removes only the files and leaves the data in the database.

更新日志:

1.7.0 1.6.0 1.5.0 1.4.0 1.3.3 1.3.2 1.3.1 1.3.0 1.2.1 1.2.0 1.1.0 1.0.0