PHPackages                             lm-commons/lmc-mail - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. lm-commons/lmc-mail

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

lm-commons/lmc-mail
===================

Wrapper for Laminas Mail that uses View Model to compose the email body

1.0.2(1y ago)19932BSD-3-ClausePHPPHP ^8.1CI passing

Since Feb 23Pushed 9mo ago2 watchersCompare

[ Source](https://github.com/LM-Commons/LmcMail)[ Packagist](https://packagist.org/packages/lm-commons/lmc-mail)[ RSS](/packages/lm-commons-lmc-mail/feed)WikiDiscussions 1.1.x Synced 1mo ago

READMEChangelog (3)Dependencies (8)Versions (10)Used By (0)

[![Continuous Integration](https://github.com/lm-commons/LmcMail/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/lm-commons/LmcMail/actions/workflows/continuous-integration.yml)[![Latest Stable Version](https://camo.githubusercontent.com/034dd5a642e816b64b6be4ce5b60ac2daa660cc60981834eabc09348101e4422/68747470733a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d6d61696c2f762f737461626c65)](https://packagist.org/packages/lm-commons/lmc-mail)[![Total Downloads](https://camo.githubusercontent.com/9c996b3c05db0e1a122caa625214293e47567f0b3998fc302fe0c6dadbce8939/687474703a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d6d61696c2f646f776e6c6f616473)](https://packagist.org/packages/lm-commons/lmc-mail)[![License](https://camo.githubusercontent.com/d6a5d63991773ec7e44e175ee9e817810364edf140e9c72bb9d7cb9aa89fdd7c/687474703a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d6d61696c2f6c6963656e7365)](https://packagist.org/packages/lm-commons/lmc-mail)[![PHP Version Require](https://camo.githubusercontent.com/4c39815fb78b07e264e7507270e3a32328e1ab7e305a24e79f4c1182268da290/687474703a2f2f706f7365722e707567782e6f72672f6c6d2d636f6d6d6f6e732f6c6d632d6d61696c2f726571756972652f706870)](https://packagist.org/packages/lm-commons/lmc-mail)

LmcMail
=======

[](#lmcmail)

An email service module that provides the ability to use the View renderer of a Laminas MVC application and the installed View Helper plugins to render HTML emails.

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

[](#requirements)

- PHP 8.1 or higher
- Laminas MVC

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

[](#installation)

Install the module:

```
$ composer require lm-commons/lmc-mail
```

Composer will inject the module into the modules configuration, or you can add it manually to the `modules.config.php` or `application.config.php`.

Customize the module by copying and renaming the sample configuration file `lm-commons/lmc-mail/config/lmcmail.local.php.dist` to the application's `config/autoload`.

Configuration
-------------

[](#configuration)

LmcMail supports with the Laminas SMTP Mail Transport or the Laminas File Mail Transport and this is configured by the `transport` config key in the `lmcmail.local.php` file:

```
