PHPackages                             netglue/laminas-mail-utils - 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. netglue/laminas-mail-utils

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

netglue/laminas-mail-utils
==========================

A collection of straight-forward validators for Laminas mail messages and some common behaviours for transactional email messages

0.0.1(6y ago)029.0k↑20%1MITPHPPHP &gt;=7.3

Since Mar 18Pushed 1y agoCompare

[ Source](https://github.com/netglue/laminas-mail-utils)[ Packagist](https://packagist.org/packages/netglue/laminas-mail-utils)[ RSS](/packages/netglue-laminas-mail-utils/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (2)Dependencies (9)Versions (4)Used By (1)

Laminas Mail Utilities
======================

[](#laminas-mail-utilities)

[![PHPUnit Test Suite](https://github.com/netglue/laminas-mail-utils/workflows/PHPUnit%20Test%20Suite/badge.svg)](https://github.com/netglue/laminas-mail-utils/workflows/PHPUnit%20Test%20Suite/badge.svg)[![codecov](https://camo.githubusercontent.com/f9cea1159f4e4e2df03c44513cfce27d55c5b30ffdbbe72c8519866188f08893/68747470733a2f2f636f6465636f762e696f2f67682f6e6574676c75652f6c616d696e61732d6d61696c2d7574696c732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/netglue/laminas-mail-utils)

Caution

This library is abandoned because `laminas-mail` has been too…

### Introduction

[](#introduction)

This is a small package to scratch two primary itches

- Validate `Laminas\Mail\Message` instances according to configurable constraints such as a maximum number of recipients, or a non-empty subject line for example.
- Provide simple behaviours and interfaces for email messages that should be sent via popular transactional or marketing email service providers; for example, key/value metadata or tagging/categorisation.

### Installation

[](#installation)

```
composer require netglue/laminas-mail-utils
```

### Shipped Validators

[](#shipped-validators)

Validators can be used as part of your input filter setup, or by creating vendor specific validator chains. Here's an example of a concrete validator chain that would be helpful validating messages to be sent via the Postmark API, which imposes certain restrictions on recipients etc:

```
