Title: tlloancy Outgoing Mail Inbox
Author: Thomas Lloancy
Published: <strong>2026 年 9 月 8 日</strong>
Last modified: 2026 年 10 月 19 日

---

搜索插件

![](https://ps.w.org/tlloancy-outgoing-mail-inbox/assets/icon-256x256.png?rev=3686348)

# tlloancy Outgoing Mail Inbox

 作者：[Thomas Lloancy](https://profiles.wordpress.org/tlloancy/)

[下载](https://downloads.wordpress.org/plugin/tlloancy-outgoing-mail-inbox.1.8.0.zip)

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

 [支持](https://wordpress.org/support/plugin/tlloancy-outgoing-mail-inbox/)

## 描述

When a visitor fills in your contact form, you do not really receive a mail _from
them_. Your own site builds an outgoing mail containing their message — often sent
from your site address **to** your site address — and the visitor’s real address
is hidden in the Reply-To header or in the order. Hit “reply” in a normal mail program
and you write to yourself.

**tlloancy Outgoing Mail Inbox** captures those outgoing mails (the same `wp_mail()`
source WP Mail Logging uses), files the ones meant for you like received mail, and
makes Reply go to the actual visitor or customer:

 * **For you** — To matches an owner address (admin email, your reply From, or extra
   addresses you list). These rows are highlighted.
 * **Automated WordPress** — the site mailed itself (install welcome, successful
   auto-updates, mailer digests).
 * **Sent** — everything else the site mailed (customer confirmations, password 
   resets…).
 * **Reply** — sends a new message **to the visitor or customer**, From the site
   mailbox. It does **not** resend the original mail to the same To (that would 
   write to yourself).

While the inbox is open, a newly logged `wp_mail()` updates the list through the
WordPress admin Heartbeat. Other plugins’ admin notices are hidden on this screen.

Background noise is filed automatically, in every language. The plugin recognizes
system mail by **who sends it** (the WordPress auto-updater, `wp_new_blog_notification`,
language packs, the WP Mail SMTP weekly summary), never by the subject text:

 * Successful auto-update notices, the install welcome mail, and mailer digests 
   are marked **System** and filed under **Automated WordPress**.
 * A **failed** update or a recovery-mode crash becomes a highlighted **Site alert**
   in **Automated WordPress**, with the PHP error details pulled out of the mail(
   WordPress 7.2 adds the last fatal error to update-failure mails; recovery mails
   have carried it since 5.2).

**AI, the WordPress way.** Open **Draft a reply with AI** above the reply editor;
with the WordPress AI plugin and a connector key, it writes a reply in the language
of the original mail; nothing is sent until you click Send reply. Prompts only go
to the connector checked for this plugin under Settings  Connectors  Approvals —
never to an unapproved one. Developers can plug AI (or plain PHP rules) into the
sorting itself through the `inbox_bridge_classify` filter and the `inbox_bridge_ai_prompt()`
helper.

The reply address is taken from the Reply-To header when it is not the site, then
from the order number when WooCommerce itself sent the mail, then from the first
non-owner email in the message. You can edit it before sending. The subject field
is editable and starts with `Re:` in front of the original title, once, the way 
Gmail does.

Replies go through `wp_mail()`. If **WP Mail SMTP** (or another mailer) is already
talking to Brevo, the reply is authenticated on your domain like any other site 
mail.

Mail written directly to `you@yourdomain.com` from Gmail does not pass through `
wp_mail()`. An optional section in Inbox  Settings can copy a Cloudflare Email Routing
Worker that files those messages too. Leave the secret empty and the inbox only 
keeps what WordPress sends.

Not affiliated with inboxbridge.io, Proton Mail Bridge, or other products named 
Inbox Bridge.

Step-by-step guides: `docs/USER-GUIDE.md` (English) and `docs/MODE-DEMPLOI.md` (
French).

## 安装

 1. Upload the `tlloancy-outgoing-mail-inbox` folder to `/wp-content/plugins/`.
 2. Activate **tlloancy Outgoing Mail Inbox**.
 3. Open **Inbox** in the admin menu.
 4. Under **Inbox  Settings**, set the reply From address (your domain mailbox) and
    the owner addresses that mean “this mail is for me”.
 5. Keep WP Mail SMTP (or equivalent) configured if you already use it.

## 常见问题

### Is this WP Mail Logging?

Same raw material: every `wp_mail()` call. Different job. WP Mail Logging is a send
log with **Resend**. tlloancy Outgoing Mail Inbox is an inbox: **For you** vs **
Sent**, and **Reply** to the human.

### Why is a contact-form mail “outgoing”?

Because WordPress generated it. The visitor submitted a form; the site mailed you.
In the inbox that row is **For you**.

### Who receives my reply?

The visitor or customer — Reply-To, billing email on an order, or an address found
in the body. Never the site From, unless you type that on purpose.

### Can I change the subject?

Yes. The reply form has a Subject field, filled in with `Re:` and the original title.
The prefix is added once, as in Gmail. Edit the field before sending if this reply
needs a different subject.

### Can I attach earlier messages?

Yes. **History sent with the reply** sets how many earlier replies to this same 
address go under the new message. They are dated lines, oldest first.

### Is this related to inboxbridge.io or Proton Mail Bridge?

No. This is an independent plugin by tlloancy. It only logs WordPress `wp_mail()`
into wp-admin. It is not affiliated with those products.

### Which From address is used for replies?

The default is the WordPress admin email (Settings  General). You can change it 
under Inbox  Settings. Replies still go through `wp_mail()`. If WP Mail SMTP has**
Force From Email** enabled, that SMTP From address is the one recipients see.

### Do I need the Cloudflare worker?

No. Mail WordPress sends is logged either way. Inbox  Settings  Cloudflare Email
Routing is optional: leave the secret empty and it stays off. Turn it on only for
mail people write directly to an address on your domain. After you save, that screen
has the address, the secret, **Copy the Worker**, and the Cloudflare steps in order.

First the domain. In the account menu, Domains only lists Overview, Registrations,
and Transfers. Open Overview, then click the domain name. Email  Email Routing in
the left menu sends you to the account page Email Routing, under Compute  Email 
Service, which lists only domains already onboarded. Press Onboard Domain, pick 
the Zone, Continue. Verify DNS records adds the MX records that send the domain’s
mail to Cloudflare, one DKIM TXT, and one SPF TXT. A second SPF TXT on the domain
name is invalid: add include:_spf.mx.cloudflare.net to the SPF already there. If
existing non-Cloudflare MX records conflict, that MX is the domain’s mail server;
Email Routing stays off while it is there, and removing it sends every address on
the domain to Cloudflare. Press Activate.

Then the Worker. Open the domain in the table, Email Routing  Destination Workers
Create, Create my own, Deploy. Open View Workers account, the worker, Edit code;
paste the script, Deploy, then click the worker name to leave the editor. Settings
is the last tab. Under Runtime variables and secrets, Add variable, Production checked,
Previews unchecked: INBOX_URL (inbox address, Secret off), INBOX_SECRET (shared 
secret, Secret on), and only when a copy should also reach a mailbox, FORWARD_TO(
a destination address already verified in Email Routing, Secret off). Press the 
blue button that counts the variables and deploys.

Then the rule. Back on the domain, Routing rules. A row whose action is an email
address does not call the Worker: open it, or Create routing rule, and set the action
to Send to a Worker. One rule for that address. Leave a Catch-all set to Drop disabled.

A mail WordPress sent to its own address, such as a contact-form notice to contact@
yoursite.com, comes back through the Worker and is recognized as the outgoing mail
already in the log: one row, not two. That address counts as one of yours from the
first routed message, so the notice itself lands in For you. The reply To is the
sender’s Reply-To when there is one, otherwise the From address people see, never
the bounce address of a mailing service. A message whose domain failed SPF, DKIM,
or DMARC shows a Sender not authenticated notice. Save attachment files keeps the
files with the message; unchecked, only the names are kept. The reply continues 
the thread when the message has a Message-ID, and the From is the address that received
it when that address is on the same domain as the From address in Settings.

### Who can read the log?

Administrators. The capability is `manage_inbox_bridge`; grant it to another role
with a role editor only when that role should see every mail the site sends. Password
reset, set-password, and activation links are stored with the key replaced by `***`,
so a link read in the inbox cannot be used.

### Do contact forms need a special setup?

Most already set Reply-To to the visitor. If they do not, add the visitor email 
as Reply-To, or type the address on the reply form.

### Will password resets show up?

Yes, under **Sent** (and **All**). They are not highlighted unless they were addressed
to an owner mailbox.

### Why do some messages show a styled preview and others look like plain text?

WooCommerce (and some forms) send HTML with their own stylesheet. The inbox shows
that HTML in an isolated preview, so the CSS cannot spill into wp-admin. WordPress
core notices are plain text, so they stay text.

### Why did the list not update until I refreshed?

The inbox page is already loaded in the browser. A `wp_mail()` runs in another request.
While the inbox is open, WordPress admin Heartbeat asks “did a new row get logged?”
and only then redraws the list. There is no extra timer.

### Why are “plugins were automatically updated” mails not in For you?

They are addressed to you, but nobody is on the other side — there is nothing to
reply to. The plugin recognizes the WordPress auto-updater, the install welcome 
mail, and similar background senders by the sending code, not by the subject, so
this works in every language. Successful updates go to **Automated WordPress** as**
System**; a failed update or a crash is a red **Site alert** in the same folder,
not in For you.

### How does the AI draft work, and which connector does it use?

Install the WordPress AI plugin and add a connector key, then check this plugin 
under Settings  Connectors  Approvals. The Draft button on a message asks the approved
connector for a reply in the language of the original mail and puts it in the editor—
you review and send. The approval matrix is re-read on every request, so switching
the checked connector takes effect immediately. If no connector is checked, you 
get a clear error instead of a silent call to an unapproved one.

### Can AI re-sort the inbox?

The classification of every logged mail passes through the `inbox_bridge_classify`
filter (folder, unread state, category, reply target). Combine it with `inbox_bridge_ai_prompt()`—
which honors the same connector approvals — to build an AI triage, or use plain 
PHP rules.

## 评价

此插件暂无评价。

## 贡献者及开发者

「tlloancy Outgoing Mail Inbox」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Thomas Lloancy ](https://profiles.wordpress.org/tlloancy/)

[帮助将「tlloancy Outgoing Mail Inbox」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/tlloancy-outgoing-mail-inbox)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.8.0

 * Received emails are displayed in HTML when the sender provides one (with plain
   text as a fallback).

#### 1.7.0

 * Improved: the list reads like a mailbox. One line per message: sender, subject,
   then the first words in grey, date on the right. Unread is bold with a blue dot,
   replied and alerts keep their mark. Move to and Delete appear when the pointer
   or the keyboard reaches the row; on a phone they sit under the message. Mail 
   the site sent shows To and the recipient.
 * Improved: an address that receives mail through Cloudflare Email Routing counts
   as one of yours from the first message. A contact-form notice WordPress sends
   to that address then lands in For you. Settings lists these addresses under Owner
   addresses.
 * Improved: Draft a reply with AI is one line above the editor; open it to type
   what the reply should say. The editor no longer shows the p path under the text.
 * Fixed: a notice WordPress sent to its own routed address came back through the
   Worker as a second row. Outgoing mail now carries a Message-ID the plugin recognizes.
   When a mailing API replaces it, a copy whose From is the address WordPress sends
   from, or whose subject matches a mail sent to that address in the last fifteen
   minutes, is also recognized. A person writing from the admin or owner mailbox
   to the routed address is still a message.
 * Fixed: the retention cleanup compared dates in UTC against a log kept in the 
   site’s time zone, so the cut fell a few hours early or late depending on the 
   zone.

#### 1.6.0

 * Security: password reset, set-password, and activation links are stored with 
   their key replaced by ***. Only administrators receive the inbox capability on
   activation; grant it to other roles on purpose.
 * New: Save attachment files, unchecked by default. Checked, the Worker sends the
   files and they are kept in a private folder with the message, with a download
   link on the message screen. Unchecked, only the names are kept. Deleting a message
   or the retention cleanup removes the files.
 * New: a reply to a routed message carries In-Reply-To and References, so the recipient’s
   mail program keeps it in the same thread. The From of that reply is the address
   that received the message when it is on the same domain as the reply address 
   in Settings.
 * New: routed messages reply to the sender’s Reply-To when there is one, otherwise
   to the From address people see, never to the bounce address of a mailing service.
   A message whose domain failed SPF, DKIM, or DMARC shows a Sender not authenticated
   notice.
 * Improved: subjects, sender names, and attachment names with accents arrive decoded.
 * Improved: the Worker forwards to FORWARD_TO only when that variable is set, retries
   the copy three times, and bounces to the sender only when neither WordPress nor
   the forward received the message. A failed insert on the WordPress side now tells
   the Worker to retry.
 * Improved: the Cloudflare steps on Settings, in both guides, and in the FAQ start
   with the domain, then the Worker, then the routing rule. Each card on Settings
   is one action, with the long part folded under it. Creating or replacing the 
   secret confirms what to do next.
 * New: remote images in an HTML message stay hidden until you press Show images,
   so a tracking pixel does not report that you opened it.
 * New: on a message, R opens the reply and puts the cursor in the editor; Esc returns
   to the list. When someone is waiting, the reply form sits above the earlier replies.
 * Improved: the list marks messages received through Cloudflare and messages with
   attachments. A search with no result says so and offers the whole folder; Clear
   removes the search.
 * Fixed: the Worker read the MIME boundary in lower case, so mail from Apple Mail,
   Outlook, or Thunderbird was stored as raw MIME with no attachments.
 * Fixed: a #123 typed in a contact form could resolve to a WooCommerce order and
   offer another customer’s address as the reply target. The order lookup now runs
   only for mail WooCommerce itself sends.

#### 1.5.0

 * New: optional Cloudflare Email Routing on Settings. Leave the secret empty and
   it stays off. After you save, the screen copies the address, the secret, and 
   the Worker, and lists the steps. A copied message is marked Received through 
   Cloudflare Email Routing.
 * Improved: those steps are numbered cards, and Copy confirms on the button.
 * Improved: the English and French guides, and the Cloudflare FAQ, follow the current
   dashboard — DNS records, an existing mail-server MX, and a routing rule whose
   action is the Worker.
 * New: the reply form has a Subject field. It starts as Re: plus the original title,
   once. Edit it before sending.
 * New: History sent with the reply. Choose how many earlier replies to that same
   address go under the new message. The row kept in the inbox is the text you wrote.
   The history is only in the mail that goes out. Each reply in the thread shows
   its subject.

#### 1.4.0

 * Improved: inbox and message screens use the full admin content width instead 
   of a 960px column.
 * Improved: page header and empty state use the plugin mark; list badges are calmer;
   folders and rows follow native admin patterns on desktop and mobile.
 * New: message headers, attachments, thread, and the reply composer sit in fold-
   out sections. Reply starts open when someone is waiting.
 * Fixed: WooCommerce (and other HTML) mails no longer dump their stylesheet as 
   text above the body. The preview keeps those styles isolated from wp-admin.
 * Improved: user guides (EN/FR) and a FAQ entry on HTML vs plain-text previews.

#### 1.3.0

 * New: delete a message straight from the list — click Delete twice within a few
   seconds to confirm, no browser confirm() dialog.
 * New: “Move to…” per row to re-file a message into another folder without opening
   it.
 * Fixed: the admin JS file was enqueued with a static version number, so browsers
   could keep serving a stale cached copy after an update; it now busts on file 
   change like the CSS already did.
 * Fixed: French (fr_FR) translation bundled in /languages.

#### 1.2.0

 * New: Automated WordPress folder. Install welcome, auto-updates, mailer digests,
   failed updates, and recovery mail leave For you.
 * New: Site alerts stay red (unread, error panel) but live in Automated WordPress,
   not For you.
 * New: List updates through the WordPress admin Heartbeat after a mail is logged—
   no extra polling loop.
 * Improved: other plugins’ admin notices are hidden on Inbox and Settings.
 * Improved: Settings is split into Reply identity / For you / Logs.

#### 1.1.0

 * New: language-independent triage. Auto-update and digest mails are recognized
   by sender (core updater filters, call stack), filed under Sent as System — For
   you keeps only real messages.
 * New: Site alerts. Failed auto-updates and recovery-mode mails stay in For you,
   highlighted in red, with the PHP fatal error extracted (ready for the WordPress
   7.2 update-failure mails).
 * New: Draft a reply with AI, pinned to the connector approved for this plugin 
   under Settings  Connectors  Approvals; clear error when none is checked.
 * New: `inbox_bridge_classify` filter and `inbox_bridge_ai_prompt()` helper so 
   AI or custom rules can re-file any logged mail.
 * Improved: list badges (Site alert / System), alert panel on the message screen,
   refreshed row styles.

#### 1.0.0

 * First release: wp_mail log, For you / Sent folders, highlighted owner notices,
   reply to the correspondent.

## 额外信息

 *  版本 **1.8.0**
 *  最后更新：**3 周前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/tlloancy-outgoing-mail-inbox/)
 * 标签
 * [contact form](https://cn.wordpress.org/plugins/tags/contact-form/)[email](https://cn.wordpress.org/plugins/tags/email/)
   [inbox](https://cn.wordpress.org/plugins/tags/inbox/)[woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
   [wp_mail](https://cn.wordpress.org/plugins/tags/wp_mail/)
 *  [高级视图](https://cn.wordpress.org/plugins/tlloancy-outgoing-mail-inbox/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/tlloancy-outgoing-mail-inbox/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/tlloancy-outgoing-mail-inbox/reviews/)

## 贡献者

 *   [ Thomas Lloancy ](https://profiles.wordpress.org/tlloancy/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/tlloancy-outgoing-mail-inbox/)

## 捐助

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

 [ 捐助此插件 ](https://donorbox.org/wordpress-plugins)