PHPackages                             burnthebook/craft-log-mail-adapter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. burnthebook/craft-log-mail-adapter

ActiveCraft-plugin[Logging &amp; Monitoring](/categories/logging)

burnthebook/craft-log-mail-adapter
==================================

Log mail transport adapter for Craft CMS

0.0.2(2mo ago)15↓100%MITPHPPHP ^8.2

Since Mar 11Pushed 2mo agoCompare

[ Source](https://github.com/Burnthebook/craft-log-mail-adapter)[ Packagist](https://packagist.org/packages/burnthebook/craft-log-mail-adapter)[ RSS](/packages/burnthebook-craft-log-mail-adapter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Log Mail Adapter for Craft CMS
==============================

[](#log-mail-adapter-for-craft-cms)

This plugin adds a mail transport adapter that logs emails to a file instead of sending them. It is recommended for local development only.

Requirements
------------

[](#requirements)

- Craft CMS 5.0.0+
- PHP 8.2+

Installation
------------

[](#installation)

```
# Go to your Craft project
cd /path/to/project

# Install the plugin
composer require burnthebook/craft-log-mail-adapter

# Enable the plugin
php craft plugin/install log-mail-adapter
```

Setup
-----

[](#setup)

Open Settings → Email and set Transport Type to "Log Adapter". Set the log file path to where you want emails written (default: `@storage/logs/mail.log`).

Each email is logged as a JSON line entry.

config/app.php snippet
----------------------

[](#configappphp-snippet)

```
