PHPackages                             h4kuna/mail-manager - 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. h4kuna/mail-manager

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

h4kuna/mail-manager
===================

Provide send and development email.

v1.3.0(6y ago)219.1k↑93.8%MITPHPPHP &gt;=7.1

Since May 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/h4kuna/mail-manager)[ Packagist](https://packagist.org/packages/h4kuna/mail-manager)[ Docs](https://github.com/h4kuna/mail-manager)[ RSS](/packages/h4kuna-mail-manager/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (8)Versions (9)Used By (0)

\[Abandoned\]
=============

[](#abandoned)

MailManager
-----------

[](#mailmanager)

[![Build Status](https://camo.githubusercontent.com/9b39f3b4c25808aa466a063aac5c68e2d91761917f29a99f58d2d0aad1449e62/68747470733a2f2f7472617669732d63692e6f72672f68346b756e612f6d61696c2d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/h4kuna/mail-manager)[![Latest stable](https://camo.githubusercontent.com/fef8a92bb7ab58f881d22b30d05a523a6236dc1758e45c2896293b270fa21919/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68346b756e612f6d61696c2d6d616e616765722e737667)](https://packagist.org/packages/h4kuna/mail-manager)[![Downloads this Month](https://camo.githubusercontent.com/505c6c0823adc8738a5f12840dffe666a230397b0f8254bc6b3b7f2a84c8b8c9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f68346b756e612f6d61696c2d6d616e616765722e737667)](https://packagist.org/packages/h4kuna/mail-manager)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/73d85e0777f75d0fde1cf63176cbf3c833b6f2810ad847fa2c1151446f1f6c2f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f68346b756e612f6d61696c2d6d616e616765722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/h4kuna/mail-manager/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/8d750690cd70281f1a35390893f961cd618f0c7358f6e1c0ed96c47076b808af/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f68346b756e612f6d61696c2d6d616e616765722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/h4kuna/mail-manager?branch=master)

This extension for [Nette framework 2.4+](http://nette.org/). Support testing mails

Installation to project
-----------------------

[](#installation-to-project)

```
$ composer require h4kuna/mail-manager
```

How to use
----------

[](#how-to-use)

Add to your file NEON

```
extensions:
    mailManagerExtension: h4kuna\MailManager\DI\MailManagerExtension

mailManagerExtension:
    from: default@example.com
    templateDir: %appDir%/template # home for mail template
    debugMode: %debugMode% # enable FileMailer whose save email to file
    tempDir: %tempDir%/mail # where save email to file

    # optional
	plainMacro: # where will find email like plain text alternative default: '=file=-plain'
    assetsDir: # path to assets
    returnPath: # where back mail whose send non exists mail
    messageFactory: # prepare for Message instance
	globalVars: # global variables for all templates
		foo: bar
		bar: %variable%

    # development
    live: FALSE # how long live email file in temp directory
        # - FALSE - forever
        # - '+1 minute' - relative time (default)

```

Support different templates for plain text and for html.

```
$message = $mailer->createMessage('body', ['foo' => $foo, 'bar' => $bar]);

// if you have body.latte (for html) and body-plain.latte (for plain text) in same directory, then is used. And bind variables onetime.

$mailer->send($message);
```

Prepare latte file in **$templateDir/test-file.latte**

```
variable foo has value: {$foo}
```

Send mail.

```
/* @var $mailer h4kuna\MailManager\MailManager */
$message = $mailer->createMessage('test-file', ['foo' => 'bar'])
           ->addTo('Milan Matejcek ');
/* @var $message Nette\Mail\Message */
$message->addBcc('bar@example.com'); // avaible is 'mail' or 'name '
$mailer->send($message); // if anything bad throw exception
```

Features
--------

[](#features)

- display email as html page
- on development machine default save to file
- autoremove saved email
- if path name containt word plain, than set plain text mail to send
- parse system mail and send, if you haven't installed sendmail on server

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 90.9% 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.

###  Release Activity

Cadence

Every ~278 days

Recently: every ~400 days

Total

8

Last Release

2427d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/54b4efb9b89167fa3598b1a41477b20387390f4a0fb65b447bd6bb7c30a49020?d=identicon)[h4kuna](/maintainers/h4kuna)

---

Top Contributors

[![h4kuna](https://avatars.githubusercontent.com/u/335722?v=4)](https://github.com/h4kuna "h4kuna (10 commits)")[![forrest79](https://avatars.githubusercontent.com/u/160766?v=4)](https://github.com/forrest79 "forrest79 (1 commits)")

---

Tags

htmllattemailnettephp

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/h4kuna-mail-manager/health.svg)

```
[![Health](https://phpackages.com/badges/h4kuna-mail-manager/health.svg)](https://phpackages.com/packages/h4kuna-mail-manager)
```

###  Alternatives

[nette/mail

📧 Nette Mail: A handy library for creating and sending emails in PHP.

5389.8M246](/packages/nette-mail)[contributte/mailing

Sending emails with pleasure and prepared templates.

16961.0k2](/packages/contributte-mailing)

PHPackages © 2026

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