PHPackages                             rixxi/mail-message-template - 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. rixxi/mail-message-template

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

rixxi/mail-message-template
===========================

0.1.0(12y ago)2920[3 issues](https://github.com/rixxi/mail-message-template/issues)BSD-3-ClausePHP

Since Jun 9Pushed 12y ago2 watchersCompare

[ Source](https://github.com/rixxi/mail-message-template)[ Packagist](https://packagist.org/packages/rixxi/mail-message-template)[ RSS](/packages/rixxi-mail-message-template/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Install
=======

[](#install)

```
composer require rixxi/mail-message-template
```

Configure
=========

[](#configure)

```
extensions:
  rixxiMailMessageTemplate: Rixxi\Mail\DI\MessageTemplateExtension
```

Use
===

[](#use)

Template
--------

[](#template)

Create template with subject, body and html body. All parts are optional.

```
{subject}Welcome to our site {$user->name}{/subject}

{body}
Oh how we are so grateful {$user->name} that you decided to join our awesome service.

Sincerly,
yours CEO
Only Man in the Company
{/body}

{body html} {* text is default *}
Oh how we are so grateful {$user->name} that you decided to join our awesome service.

	Sincerly,
	yours CEO
	Only Man in the Company

{/body}
```

Code
====

[](#code)

```
$message = $messageFactory->createFromFile(__DIR__ . '/../mails/registration.latte', array(
	'user' => (object) array(
		'name' => 'Name Surname',
	),
));

// message will have set subject, body and its html alternative

// setup other stuff and send
$message->addTo($user->email);
$message->setFrom('example@example.com');

$this->sender->send($message);

\\ ...
```

Creating from file template will allow you to utilize `Nette\Mail\Message` auto-inlining of template content for html body. You can alternatively use `createFromString` for creating message from string.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4406d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/276500?v=4)[Michal Gebauer](/maintainers/mishak87)[@mishak87](https://github.com/mishak87)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rixxi-mail-message-template/health.svg)

```
[![Health](https://phpackages.com/badges/rixxi-mail-message-template/health.svg)](https://phpackages.com/packages/rixxi-mail-message-template)
```

###  Alternatives

[contributte/mailing

Sending emails with pleasure and prepared templates.

17966.3k2](/packages/contributte-mailing)

PHPackages © 2026

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