PHPackages                             digitaledgeit/zf2-mail-module - 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. digitaledgeit/zf2-mail-module

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

digitaledgeit/zf2-mail-module
=============================

0.1.0(11y ago)01041PHPPHP &gt;=5.4

Since Jun 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/digitaledgeit/zf2-mail-module)[ Packagist](https://packagist.org/packages/digitaledgeit/zf2-mail-module)[ Docs](http://digitaledgeit.com.au/)[ RSS](/packages/digitaledgeit-zf2-mail-module/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

ZF2 Mail Module
===============

[](#zf2-mail-module)

A module simplifying use of ZF2 Mail.

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

[](#installation)

Add the module to your `composer.json` file and run `composer install`:

```
"digitaledgeit/zf2-mail-module": "dev-master"

```

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

[](#configuration)

Add the module to the `modules` key in your `config/application.config.php` file:

```
'modules' => [
	'DeitMailModule',
],

```

Add the configuration to your `local.php` and `module.config.php`:

```
'deit_mail' => [

	//an array containing type and options keys or a string containing a service name
	'transport' => [
		'type'      => '',              //null, file, sendmail or smtp
		'options'   => [                //see the transport options for selected type at http://framework.zend.com/manual/2.1/en/modules/zend.mail.introduction.html
		],
	],

	'renderer'  => 'ViewRenderer'        //a string containing a service name
],

```

Sending mail
------------

[](#sending-mail)

```
//get the service
$service = $serviceManager->get('deit_mail_service');

//send a message containing plain text and HTML versions
$service->sendMixedMessage(
	[
		'to'            => 'fred@example.com',
		'from'          => 'wilma@example.com',
		'subject'       => 'A test message from my app',
		'attachments'   => [
            [
                'type'      => 'text/html',
                'name'      => 'test1.html',
                'content'   => 'Test HTML PageTest HTML Page'
            ],
            [
                'type'      => 'text/html',
                'name'      => 'test2.html',
                'content'   => './path/to/the-file.html'
            ]
        ]
	],
	[
		'text/plain'    => 'email/hello-text',
		'text/html'     => 'email/hello-html'
	],
	[
		'name' => 'World!'
	]
);

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4346d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9050e05cfda0799a4c46ef532967b7b970546a223bc2144e75531ff199967ba?d=identicon)[jameslnewell](/maintainers/jameslnewell)

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/digitaledgeit-zf2-mail-module/health.svg)

```
[![Health](https://phpackages.com/badges/digitaledgeit-zf2-mail-module/health.svg)](https://phpackages.com/packages/digitaledgeit-zf2-mail-module)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[netflie/laravel-notification-whatsapp

Laravel notification driver for WhatsApp

176173.9k](/packages/netflie-laravel-notification-whatsapp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
