Title: Mailtree Log Mail
Author: oacstudio
Published: <strong>Dawout 6, 2022</strong>
Last modified: Jiyè 24, 2024

---

Search plugins

![](https://ps.w.org/mailtree-log-mail/assets/banner-772x250.png?rev=3124627)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/mailtree-log-mail/assets/icon-256x256.png?rev=3124627)

# Mailtree Log Mail

 By [oacstudio](https://profiles.wordpress.org/oacstudio/)

[Download](https://downloads.wordpress.org/plugin/mailtree-log-mail.1.0.1.zip)

 * [Details](https://hat.wordpress.org/plugins/mailtree-log-mail/#description)
 * [Reviews](https://hat.wordpress.org/plugins/mailtree-log-mail/#reviews)
 *  [Installation](https://hat.wordpress.org/plugins/mailtree-log-mail/#installation)
 * [Development](https://hat.wordpress.org/plugins/mailtree-log-mail/#developers)

 [Support](https://wordpress.org/support/plugin/mailtree-log-mail/)

## Description

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.

## Screenshots

 * [[
 * Log overview
 * [[
 * Log entry
 * [[
 * Settings

## Installation

 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.

## FAQ

### 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.

## Reviews

![](https://secure.gravatar.com/avatar/02a76d95b36cbc866cf2652b1a0739943346028e0564ba8735ed59744c41cfe7?
s=60&d=retro&r=g)

### 󠀁[REST API support](https://wordpress.org/support/topic/rest-api-support-30/)󠁿

 [con](https://profiles.wordpress.org/conschneider/) Dawout 6, 2022

Thank you for building this with REST API support. I like the archive function.

 [ Read all 1 review ](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/)

## Contributors & Developers

“Mailtree Log Mail” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ oacstudio ](https://profiles.wordpress.org/oacstudio/)

[Translate “Mailtree Log Mail” into your language.](https://translate.wordpress.org/projects/wp-plugins/mailtree-log-mail)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/mailtree-log-mail/),
check out the [SVN repository](https://plugins.svn.wordpress.org/mailtree-log-mail/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/mailtree-log-mail/)
by [RSS](https://plugins.trac.wordpress.org/log/mailtree-log-mail/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Fix: Escape subject output in admin table.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.1**
 *  Last updated **2 years ago**
 *  Active installations **10+**
 *  WordPress version ** 4.0 or higher **
 *  Tested up to **6.5.8**
 *  Language
 * [English (US)](https://wordpress.org/plugins/mailtree-log-mail/)
 * Tags
 * [log](https://hat.wordpress.org/plugins/tags/log/)[mail](https://hat.wordpress.org/plugins/tags/mail/)
   [mail log](https://hat.wordpress.org/plugins/tags/mail-log/)
 *  [Advanced View](https://hat.wordpress.org/plugins/mailtree-log-mail/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/mailtree-log-mail/reviews/)

## Contributors

 *   [ oacstudio ](https://profiles.wordpress.org/oacstudio/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/mailtree-log-mail/)