nanoPost Email Check
Check that your site can still send email.
Install in
A site can lose its email without any sign on the front end. A host switches off PHP’s mail(), an SMTP password changes, an API key is revoked, a plugin update resets the mailer settings. The pages still load. The first report is usually a customer asking where their order confirmation went.
nanoPost Email Check sends a test email on a schedule, logs every result, and puts a notice in wp-admin when a check fails or when the checks stop running. It finds the break on the day it happens.
What it checks
Each check sends a short test message with wp_mail(), the function WordPress and well-behaved plugins use to send email. The plugin records whether wp_mail() accepted the message. When it did not, it also records the error text WordPress reported through the wp_mail_failed hook, for example SMTP Error: Could not authenticate.
A pass means the mail system WordPress uses accepted the message. It does not prove the message reached an inbox: read the test email in the recipient mailbox to confirm that.
Features
- Scheduled checks: twice daily, daily (the default) or weekly, on WP-Cron.
- Send test now: run a check at once from the plugin screen.
- Result log: the last 30 results, with the time, what started the check, pass or fail, the recipient and the error text.
- Admin notice when a check fails, for users who can manage options. It clears by itself when the next check passes, and each user can dismiss it. A new failure shows it again.
- Admin notice when the checks stop: if no scheduled check has finished for twice the interval, the plugin tells you. The usual causes are WP-Cron not running, or a check that crashes with a PHP error.
- Optional webhook: post failures to Slack, Google Chat, Discord or any service that accepts a webhook, so the alert does not depend on the email that just broke. One more message is sent when checks pass again.
- Help links for failed and stopped checks, to plain-language help pages on nanopo.st, including an error decoder.
The plugin screen is at Tools > Email Check.
Full documentation: nanopo.st/email-check-plugin. Source code: GitHub.
External services
The plugin makes no outside requests unless you set a webhook URL.
Webhook (optional)
When you enter a webhook URL, the plugin sends an HTTP POST to that URL when a check fails, and once when checks pass again after a failure. The JSON body holds a short text line, the site address, the status (fail or pass), the error text and the time of the check. For a Google Chat URL, only the text line is sent. The request goes only to the URL you enter, and it is governed by the terms and privacy policy of the service that URL belongs to. Leave the field empty to send nothing.
The setup help names these services. The plugin sends to them only when you enter one of their webhook URLs:
- Slack incoming webhooks: terms, privacy policy
- Google Chat webhooks: terms, privacy policy
- Discord webhooks: terms, privacy policy
Help pages on nanopo.st
The plugin screen and notices link to help pages on nanopo.st. These are plain links: nothing is sent until you click one. When you click the help link for an error, the error text is put in the link after the #. Your browser does not send that part of the address to the server; the nanopo.st page reads it in your browser.
- Terms of use: https://nanopo.st/terms/
- Privacy policy: https://nanopo.st/privacy/
Written by Joobi from the project's own listing. See the source page
1.1.0
- Send test now runs at most once a minute per site.
- Error text is cut at 4,000 characters in the log, the notices and the webhook.
- Webhook messages escape the error text, so it cannot add links or mention everyone in Slack, Google Chat, Discord, Mattermost or Rocket.Chat.
1.0.0
- First release on WordPress.org. Rebuilt from Daily Email Tester 0.1.
- Scheduled test email with a choice of interval, and Send test now.
- Result log with the error text from wp_mail_failed.
- Admin notices for failed and stopped checks.
- Optional webhook alert.
- Help links to nanopo.st.
Follow this listing's changes (Atom feed)