Download the PHP package netglue/laminas-mail-utils without Composer
On this page you can find all versions of the php package netglue/laminas-mail-utils. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netglue/laminas-mail-utils
More information about netglue/laminas-mail-utils
Files in netglue/laminas-mail-utils
Package laminas-mail-utils
Short Description A collection of straight-forward validators for Laminas mail messages and some common behaviours for transactional email messages
License MIT
Informations about the package laminas-mail-utils
Laminas Mail Utilities
[!CAUTION] This library is abandoned because
laminas-mail
has been too…
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
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:
Shipped Traits & Interfaces
You'll find a collection of interfaces that are pretty minimal but hopefully encapsulate what a lot of transactional email service providers offer when it comes to additional features WRT sending mail - for example, assigning tags or categories to individual messages or turning click tracking or open tracking on and off.
Typically, you make a concrete descendant of Laminas\Mail\Message
and implement whichever interfaces suit the provider best so that you have type safety when working with the capabilities of any given message instance. Again, using Postmark as an example, perhaps something like this:
The plan…
… is to implement vendor specific packages that lever these utilities, with, as you may have guessed, Postmark at the top of the list currently…
The package is currently immature and subject to probable BC breaks and contributions are welcomed if this scratches any itches for you 👍
All versions of laminas-mail-utils with dependencies
laminas/laminas-mail Version ^2.10
laminas/laminas-mime Version ^2.7
laminas/laminas-validator Version ^2.13