PHPackages                             arvind2110/zf2mail - 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. arvind2110/zf2mail

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

arvind2110/zf2mail
==================

ZF2-Mail is very simple ZF2 module for handling ZF2 mails.

2611PHP

Since Jun 24Pushed 12y ago1 watchersCompare

[ Source](https://github.com/arvind2110/ZF2Mail)[ Packagist](https://packagist.org/packages/arvind2110/zf2mail)[ RSS](/packages/arvind2110-zf2mail/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ZF2Mail
=======

[](#zf2mail)

ZF2-Mail is a simple ZF2 module to implement and manage mail functionality in ZF2 applications.

SMTP settings : module.config.php

```
return array(
    "EMAIL" => array(
        "SMTP_SENDER_TYPE" => "user",
        "SMTP_NAME" => "localhost",
        "SMTP_HOST" => "localhost",
        "SMTP_PORT" => "25",
        "SMTP_CONNECTION_CLASS" => "plain",
        "SMTP_USERNAME" => "",
        "SMTP_PASSWORD" => "",
        "SMTP_SSL" => "",
        "BODY" => "Custom default message",
        "FROM" => "noreply@example.com",
        "TO" => "yoremail@example.com",
        "MAIL_FROM_NICK_NAME" => "Custom Name",
        "SUBJECT" => "Custom Subject",
        "FROM_NICK_NAME" => "Cutom From",
        "EMAIL_TEMPLATE_PATH" => __DIR__ . "/../view/emails/templates/",
        "USE_SMTP" => FALSE
    )
);
```

Sending Mails

```
$mail = $this->getServiceLocator()->get('ZF2Mail');

$mailOptions = array(
    'mailTo' => 'arvind.singh.2110@gmail.com',
    'mailFrom' => 'example@example.com',
    'mailSubject' => 'My Custom Subject',
    'mailBody' => 'My custom message',
    'templateFile' => 'custom-message',
    'params' => array('name' => 'Arvind Singh')
);
$mail->sendMail($mailOptions);
```

You can pass other parameters as per your requirement.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7286603?v=4)[Arvind Singh](/maintainers/arvind2110)[@arvind2110](https://github.com/arvind2110)

---

Top Contributors

[![arvind2110](https://avatars.githubusercontent.com/u/7286603?v=4)](https://github.com/arvind2110 "arvind2110 (4 commits)")

### Embed Badge

![Health badge](/badges/arvind2110-zf2mail/health.svg)

```
[![Health](https://phpackages.com/badges/arvind2110-zf2mail/health.svg)](https://phpackages.com/packages/arvind2110-zf2mail)
```

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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