這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Mailtree Log Mail

外掛說明

This plugin logs all mails that use the wp_mail() function (should be almost all). Mail can be viewed, downloaded as CSV and resend.

The plugin has REST API support. Log entries can also be exported automatically to another (archive) WordPress site that runs Mailtree. Mailtree uses the REST API for exporting entries and also has an automatic retry function to account for connection errors.

Feature list

Logs:

  • Logs all emails using the wp_mail() function (should be almost all!).
  • Download single entry as CSV.
  • Bulk download entries as CSV.
  • Download all entries as CSV.
  • Delete single entry.
  • Bulk delete entries.
  • View all, only failed or only successful sent messages.
  • Logs additional info such as trigger, exact time, content type, reply to address and full HTML.
  • Search log entries.

Settings:

  • Set capability to view logs.
  • Set capability to view settings.

Auto export / REST API:

  • Export all entries to an external site automatically using Application Passwords and the REST API. Great for keeping a mail archive.
  • Failed auto exports are retried automatically.
  • Provides two REST API endpoints to save log entries (sent successful / failed).

Misc:

  • Translation-Ready

Roadmap:

  • Attachements are not logged or saved. However the message detail will show a notification that an attachement was sent.

螢幕擷圖

  • Log overview
  • Log entry
  • Settings

安裝方式

  1. Upload mailtree.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Navigate to the new “Mailtree” main menu item to view entries and configure settings.

常見問題集

How do I create an Application Password for auto export?

Visit your user profile in the backend via /wp-admin/profile.php.
Scroll down “Application Passwords” and enter any name i.e. “Mailtree”. It does not matter what name you pick.
Click “Add New Application Password”.
The new Application Password gets displayed. Save it somewhere. It will not get displayed again.

Please note: The user that creates the Application Password must have the capability required by the “User capability needed to see logs (and access REST API endpoints)” setting.

Are attachements logged?

Not yet.
Attachements are not saved and also not auto exported to an external site.

使用者評論

2022 年 8 月 6 日
Thank you for building this with REST API support. I like the archive function.
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Mailtree Log Mail〉的開發相關工作。

參與者

將〈Mailtree Log Mail〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.1

  • Fix: Escape subject output in admin table.

1.0.0

  • Initial release.