PHPackages                             reflar/pretty-mail - 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. reflar/pretty-mail

Abandoned → [fof/pretty-mail](/?search=fof%2Fpretty-mail)Flarum-extension[Mail &amp; Notifications](/categories/mail)

reflar/pretty-mail
==================

Create HTML email for Flarum

1.1.2(2y ago)93751[7 issues](https://github.com/FriendsOfFlarum/pretty-mail/issues)[6 PRs](https://github.com/FriendsOfFlarum/pretty-mail/pulls)MITTypeScriptCI passing

Since Apr 18Pushed 3mo ago4 watchersCompare

[ Source](https://github.com/FriendsOfFlarum/pretty-mail)[ Packagist](https://packagist.org/packages/reflar/pretty-mail)[ Docs](https://friendsofflarum.org)[ Fund](https://opencollective.com/fof/donate)[ RSS](/packages/reflar-pretty-mail/feed)WikiDiscussions master Synced today

READMEChangelog (8)Dependencies (2)Versions (27)Used By (0)

Pretty Mail by FriendsOfFlarum
==============================

[](#pretty-mail-by-friendsofflarum)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667) [![Latest Stable Version](https://camo.githubusercontent.com/e69dca712540c506d50b980e2d01d626e7c4352aeb32fd4ba722293d81e39173/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f662f7072657474792d6d61696c2e737667)](https://packagist.org/packages/fof/pretty-mail) [![OpenCollective](https://camo.githubusercontent.com/1903c197bb0307e60d6328653532b8a6b9890b898fbc92e314ab39d699491e74/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f70656e636f6c6c6563746976652d666f662d626c75652e737667)](https://opencollective.com/fof/donate)

A [Flarum](http://flarum.org) extension. Make custom HTML templates for emails!

- Configure your custom email template from the extension settings
- This supports all emails sent by Flarum, and 3rd party extensions

### Extending

[](#extending)

It is possible to make additional variables available to the templates from other extensions. For example:

In your `extend.php`

```
(new \FoF\PrettyMail\Extend\PrettyMail)
    ->addTemplateData('myNewVariable', Callback\NewVariableCallback::class),
```

The callback should be an invokable class, and accept `\Flarum\Notification\Blueprint\BlueprintInterface`, returning the `string` value that should be assigned to your new variable.

You should also include a translation using the key `fof-pretty-mail.admin.settings.attributes.myNewVariable`, which will be displayed in the extension settings page, so that admin users know what your new key is providing them, and were they should use it in their template.

### Installation

[](#installation)

Install with composer:

```
composer require fof/pretty-mail:"*"
```

### Updating

[](#updating)

```
composer update fof/pretty-mail
```

### Important Note

[](#important-note)

Due to how Flarum handles certain emails, I had to utilize a "hack" to get it to work. Please report any issues you have to our Github.

### Links

[](#links)

[![](https://camo.githubusercontent.com/0902ec237d4d38955be6c93a043a27694eb59f49ab91e47022b86cee1892afce/68747470733a2f2f6f70656e636f6c6c6563746976652e636f6d2f666f662f646f6e6174652f627574746f6e4032782e706e673f636f6c6f723d626c7565)](https://opencollective.com/fof/donate)

- [Packagist](https://packagist.org/packages/fof/pretty-mail)
- [GitHub](https://github.com/packages/FriendsOfFlarum/pretty-mail)

An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance40

Moderate activity, may be stable

Popularity19

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~107 days

Recently: every ~225 days

Total

20

Last Release

960d ago

Major Versions

0.4.0 → 1.0.02021-05-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/1298cdc0b2402a1aa34fb75a254947d655e090d62bd0531311331d369cac934e?d=identicon)[datitisev](/maintainers/datitisev)

![](https://www.gravatar.com/avatar/887d749e38ce714da8ef0063fa39a5ceb5085cd4fdb1f4bf4bbda28b116ab025?d=identicon)[CDK2020](/maintainers/CDK2020)

---

Top Contributors

[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (15 commits)")[![dsevillamartin](https://avatars.githubusercontent.com/u/6401250?v=4)](https://github.com/dsevillamartin "dsevillamartin (14 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (8 commits)")[![KyrneDev](https://avatars.githubusercontent.com/u/13856015?v=4)](https://github.com/KyrneDev "KyrneDev (4 commits)")[![clarkwinkelmann](https://avatars.githubusercontent.com/u/5264300?v=4)](https://github.com/clarkwinkelmann "clarkwinkelmann (3 commits)")[![karaok491](https://avatars.githubusercontent.com/u/72854852?v=4)](https://github.com/karaok491 "karaok491 (3 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![glowingblue-dev](https://avatars.githubusercontent.com/u/36635329?v=4)](https://github.com/glowingblue-dev "glowingblue-dev (2 commits)")[![iPurpl3x](https://avatars.githubusercontent.com/u/18526076?v=4)](https://github.com/iPurpl3x "iPurpl3x (1 commits)")[![eddiewebb](https://avatars.githubusercontent.com/u/5262154?v=4)](https://github.com/eddiewebb "eddiewebb (1 commits)")[![Ralkage](https://avatars.githubusercontent.com/u/2059356?v=4)](https://github.com/Ralkage "Ralkage (1 commits)")[![rob006](https://avatars.githubusercontent.com/u/5972388?v=4)](https://github.com/rob006 "rob006 (1 commits)")

---

Tags

extensionflarumflarum-extensionforumfriendsofflarumhacktoberfestmailextensionflarum

### Embed Badge

![Health badge](/badges/reflar-pretty-mail/health.svg)

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

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12127.5k](/packages/flarum-lang-russian)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1936.5k](/packages/flarum-lang-french)[fof/subscribed

Additional user subscriptions for your forum

1231.7k2](/packages/fof-subscribed)[fof/webhooks

Automatically notify Discord, Slack, and Microsoft Teams when events happen on your Flarum forum.

2419.4k](/packages/fof-webhooks)

PHPackages © 2026

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