Title: Fail2Notify — Mail Failure Alerts
Author: Solgeo Corp.
Published: <strong>2025 年 11 月 28 日</strong>
Last modified: 2026 年 7 月 10 日

---

搜索插件

![](https://ps.w.org/fail2notify-mail-failure-alerts/assets/icon-256x256.png?rev
=3408686)

# Fail2Notify — Mail Failure Alerts

 作者：[Solgeo Corp.](https://profiles.wordpress.org/solgeo3960/)

[下载](https://downloads.wordpress.org/plugin/fail2notify-mail-failure-alerts.1.0.5.zip)

 * [详情](https://cn.wordpress.org/plugins/fail2notify-mail-failure-alerts/#description)
 * [评价](https://cn.wordpress.org/plugins/fail2notify-mail-failure-alerts/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/fail2notify-mail-failure-alerts/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/fail2notify-mail-failure-alerts/#developers)

 [支持](https://wordpress.org/support/plugin/fail2notify-mail-failure-alerts/)

## 描述

Fail2Notify hooks into the core `wp_mail_failed` action to capture transport errors,
masks personally identifiable information, optionally stores the latest 50 failure
logs, and posts a concise message to a Slack incoming webhook. A manual “Send Test
Notification” button is included to verify connectivity without forcing an actual
failure.

#### Features

 * Instant detection of `wp_mail()` failures.
 * Slack Incoming Webhook notifications with site label, environment, and body excerpt.
 * Automatic masking for email addresses in any field, including the message body.
 * Up to 50 recent logs visible inside the settings page.
 * Manual “Send Test Notification” button for quick verification.

#### Documentation

 * [Setup Manual (English)](https://solgeo.co.jp/fail2notify-how-to-setup-en)

### 説明

Fail2Notifyは、WordPressコアの`wp_mail_failed`アクションにフックして、メール送信
エラーを検出します。個人情報を自動的にマスクし、最大50件の最新の失敗ログを保存し、
SlackのIncoming Webhookに簡潔なメッセージを送信します。実際のエラーを発生させずに
接続を確認できる「テスト通知を送信」ボタンも含まれています。

#### 機能

 * `wp_mail()`の失敗を即座に検出します。
 * サイト名、本番、ステージングなどの環境、本文抜粋を含むSlack Incoming Webhook通知
   を送信します。
 * メッセージ本文を含むすべてのフィールドでメールアドレスを自動的にマスクします。
 * 設定ページ内で最新50件の送信失敗＆失敗の通知先のログが表示されます。
 * 接続を素早く確認できる「テスト通知を送信」ボタンがあるのでその場で設定に問題が
   ないか確認できます。

#### マニュアル

 * [日本語マニュアル](https://solgeo.co.jp/fail2notify-how-to-setup)

### インストール

 1. `fail2notify-mail-failure-alerts`ディレクトリを`/wp-content/plugins/`にアップロード
    するか、プラグイン画面からインストールします。
 2. 「プラグイン」>「インストール済みプラグイン」からプラグインを有効化します。
 3. 「設定」>「Fail2Notify」を開きます。
 4. 監視を有効にし、必要に応じてサイト/環境ラベルを設定し、Slack Webhook URLを保存し
    ます。
 5. テストボタンを使用してWebhookが正常に動作することを確認します。

### よくある質問

#### Slack以外にもアラートを送信できますか？

現時点ではできません。通知レイヤーは意図的にシンプルに設計されているため、追加の
トランスポート（Teams、Discordなど）は今後追加される可能性があります。

#### Contact Form 7やその他のフォームプラグインで動作しますか？

はい。それらは`wp_mail()`に依存しているため、このプラグインは追加設定なしで同じ失敗
フックをキャプチャします。

#### ログをより長期間保持できますか？

バンドルされているロガーは最新50エントリを保持します。今後のリリースではフィルター
が追加される可能性があります。それまでは、ロガークラスを拡張または交換して、別の
場所に永続化できます。

### 変更履歴

#### 1.0.5

 * WordPress 7.0 での動作確認済み。
 * load_plugin_textdomain() を削除。WordPress.org が翻訳を自動読み込みします。

#### 1.0.4

 * WordPress 6.9 での動作確認済み。

#### 1.0.3

 * 設定画面およびReadmeにマニュアルへのリンクを追加しました。

#### 1.0.2

 * メンテナンスリリース：バージョン表記の統一と翻訳ファイルの読み込み処理の追加。

#### 1.0.0

Slack通知、マスキング、ダッシュボード内ログ、手動テストトリガーを含む初回リリース。

### アップグレード通知

#### 1.0.0

初回公開リリース。アップグレード後、Slack Webhookを設定してください。

## 安装

 1. Upload the `fail2notify-mail-failure-alerts` directory to `/wp-content/plugins/`
    or install via the Plugins screen.
 2. Activate the plugin through “Plugins” > “Installed Plugins”.
 3. Open “Settings” > “Fail2Notify”.
 4. Enable monitoring, optionally set the site/environment labels, and save your Slack
    Webhook URL.
 5. Use the test button to confirm the webhook succeeds.

## 常见问题

### Can I send alerts anywhere other than Slack?

Not yet. The notifier layer is intentionally simple, so additional transports (Teams,
Discord, etc.) can be contributed later.

### Will it work with Contact Form 7 or other form plugins?

Yes. They rely on `wp_mail()`, so this plugin captures the same failure hooks without
extra configuration.

### Can I keep logs for longer?

The bundled logger keeps the latest 50 entries. Future releases may add filters;
meanwhile you can extend or swap the logger class to persist elsewhere.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Fail2Notify — Mail Failure Alerts」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Solgeo Corp. ](https://profiles.wordpress.org/solgeo3960/)

「Fail2Notify — Mail Failure Alerts」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/fail2notify-mail-failure-alerts/contributors)
为本插件所做的贡献。

[帮助将「Fail2Notify — Mail Failure Alerts」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/fail2notify-mail-failure-alerts)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/fail2notify-mail-failure-alerts/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/fail2notify-mail-failure-alerts/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/fail2notify-mail-failure-alerts/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/fail2notify-mail-failure-alerts/)。

## 更新日志

#### 1.0.5

 * Tested up to WordPress 7.0.
 * Removed manual load_plugin_textdomain(); WordPress.org auto-loads translations.

#### 1.0.4

 * Tested up to WordPress 6.9.

#### 1.0.3

 * Added links to the setup manual in the settings page and readme.

#### 1.0.2

 * Maintenance release: version unification and added textdomain support.

#### 1.0.0

 * Initial release with Slack notifications, masking, in-dashboard logs, and manual
   test trigger.

## 额外信息

 *  版本 **1.0.5**
 *  最后更新：**3 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0.7**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/fail2notify-mail-failure-alerts/)
   和 [Japanese](https://ja.wordpress.org/plugins/fail2notify-mail-failure-alerts/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/fail2notify-mail-failure-alerts)
 * 标签
 * [email](https://cn.wordpress.org/plugins/tags/email/)[logging](https://cn.wordpress.org/plugins/tags/logging/)
   [notification](https://cn.wordpress.org/plugins/tags/notification/)[slack](https://cn.wordpress.org/plugins/tags/slack/)
   [wp_mail](https://cn.wordpress.org/plugins/tags/wp_mail/)
 *  [高级视图](https://cn.wordpress.org/plugins/fail2notify-mail-failure-alerts/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/fail2notify-mail-failure-alerts/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/fail2notify-mail-failure-alerts/reviews/)

## 贡献者

 *   [ Solgeo Corp. ](https://profiles.wordpress.org/solgeo3960/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/fail2notify-mail-failure-alerts/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://solgeo.co.jp/)