PHPackages                             coldtrick/html\_email\_handler - 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. coldtrick/html\_email\_handler

AbandonedArchivedElgg-plugin[Mail &amp; Notifications](/categories/mail)

coldtrick/html\_email\_handler
==============================

Allows to send out full HTML mails / notifications

v5.1(5y ago)111.9k101GPL-2.0-onlyPHP

Since May 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ColdTrick/html_email_handler)[ Packagist](https://packagist.org/packages/coldtrick/html_email_handler)[ Fund](https://www.paypal.me/ColdTrick)[ GitHub Sponsors](https://github.com/ColdTrick)[ RSS](/packages/coldtrick-html-email-handler/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (16)Used By (1)

HTML Email Handler
==================

[](#html-email-handler)

[![Elgg 3.0](https://camo.githubusercontent.com/ede530ff6a03250d58d4e9e84e86733b6bcbf760b9127b5b4e011cf649ad7e8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d332e302d677265656e2e737667)](https://camo.githubusercontent.com/ede530ff6a03250d58d4e9e84e86733b6bcbf760b9127b5b4e011cf649ad7e8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f456c67672d332e302d677265656e2e737667)[![Build Status](https://camo.githubusercontent.com/7d6f47c8c674bec8b932c229126746cefbe14cc77e3dbdd586ba043de7583559/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f6c64547269636b2f68746d6c5f656d61696c5f68616e646c65722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ColdTrick/html_email_handler/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3f893b649a4dc9ab450be25374067c9faeb3ccfc17e1261f200b8ec7cb05dd68/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f436f6c64547269636b2f68746d6c5f656d61696c5f68616e646c65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/ColdTrick/html_email_handler/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/872c6352738b386a56e7414e7caa91a885a5d6c1f4b62f8acb25482f8710b5a9/68747470733a2f2f706f7365722e707567782e6f72672f636f6c64747269636b2f68746d6c5f656d61696c5f68616e646c65722f762f737461626c652e737667)](https://packagist.org/packages/coldtrick/html_email_handler)[![License](https://camo.githubusercontent.com/977c5284447bdee577ee45b59e63fcfa5975d9cc1d57887a8c995ddbccac3f6b/68747470733a2f2f706f7365722e707567782e6f72672f636f6c64747269636b2f68746d6c5f656d61696c5f68616e646c65722f6c6963656e73652e737667)](https://packagist.org/packages/coldtrick/html_email_handler)

Send out full HTML mails to your users

Features
--------

[](#features)

- Send out full HTML notifications to your users (also supported by webmail like GMail)
    - can be toggle in the admin settings
    - to customise it for your own theme overrule the view default/html\_email\_handler/notification/body.php
- Offers mail function for developers html\_email\_handler\_send\_email()
    - see /lib/functions.php for more information
- Offers CSS conversion to inline CSS (needed for webmail support) html\_email\_handler\_css\_inliner($html\_text)
    - see lib/functions.php for more information
- Allows file attachments support in notify\_user (see File attachments support below)

### Administrators, Developers &amp; Designers

[](#administrators-developers--designers)

If you have the **[developers](/admin/plugins#developers)** plugin enabled you can easily design the layout of your HTML message, check the Theming sandbox.
Otherwise you can go to [the test url](/html_email_handler/test) to design the layout.

File attachements notes and documentation
-----------------------------------------

[](#file-attachements-notes-and-documentation)

File attachments support :

If you wish to add file attachments to email notifications, you can use the notify\_user function and pass it an "attachments" key, with `$params['attachments']` :

```
	$attachments[] = array(
		'content' => $file_content, // File content
		//'filepath' => $file_content, // Alternate file path for file content retrieval
		'filename' => $file_content, // Attachment file name
		'mimetype' => $file_content, // MIME type of attachment
	);
```

Note that `$attachments` is an array, so you can pass several files at once, each with a custom filename and MIME type.

**Warning**: don't use 'filepath' setting on a production site (not functional yet)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 80.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 ~160 days

Recently: every ~136 days

Total

13

Last Release

2043d ago

Major Versions

v3.1.1 → v4.02016-01-20

v4.0.4 → v5.02019-03-27

### Community

Maintainers

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

---

Top Contributors

[![jeabakker](https://avatars.githubusercontent.com/u/881958?v=4)](https://github.com/jeabakker "jeabakker (131 commits)")[![jdalsem](https://avatars.githubusercontent.com/u/861833?v=4)](https://github.com/jdalsem "jdalsem (15 commits)")[![Facyla](https://avatars.githubusercontent.com/u/286492?v=4)](https://github.com/Facyla "Facyla (12 commits)")[![migrax](https://avatars.githubusercontent.com/u/1770030?v=4)](https://github.com/migrax "migrax (4 commits)")

---

Tags

pluginemailnotificationelgg

### Embed Badge

![Health badge](/badges/coldtrick-html-email-handler/health.svg)

```
[![Health](https://phpackages.com/badges/coldtrick-html-email-handler/health.svg)](https://phpackages.com/packages/coldtrick-html-email-handler)
```

###  Alternatives

[nikolaposa/notifier

Extensible library for building notifications and sending them via different delivery channels.

211.6k](/packages/nikolaposa-notifier)

PHPackages © 2026

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