PHPackages                             undkonsorten/html-mail-utility - 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. undkonsorten/html-mail-utility

ActiveTypo3-cms-extension[Mail &amp; Notifications](/categories/mail)

undkonsorten/html-mail-utility
==============================

Mail Utility: css inlining and plaintext

2.0.0(1y ago)0961GPL-2.0+PHPPHP ^7.4 || ^8.1

Since Mar 14Pushed 12mo ago4 watchersCompare

[ Source](https://github.com/undkonsorten/html_mail_utility)[ Packagist](https://packagist.org/packages/undkonsorten/html-mail-utility)[ RSS](/packages/undkonsorten-html-mail-utility/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (1)

HTML mail utility
=================

[](#html-mail-utility)

What does it do?
----------------

[](#what-does-it-do)

Extension *html\_mail\_utility* bundles a couple of third-party libraries which are needed for a HTML newsletter campaign. Each of them ship with a Fluid view helper or a Class suitable for `USER` or `USER_INT`.

- [Inky](http://foundation.zurb.com/emails/docs/inky.html) is a set of tags like `` or `` that will be transformed to the beloved stone-age `` markup. This extension makes use of the PHP implementation [hampe/inky](https://github.com/thampe/inky)
- CSS inlining is another common task for newsletter mailings. [tijsverkoyen/css-to-inline-styles](https://github.com/tijsverkoyen/CssToInlineStyles)is integrated for this purpose.
- For html and plaintext multipart messages, [html2text/html2text](https://github.com/mtibben/html2text) is bundled so you can convert HTML to plaintext at the very end of your newsletter build process.

All three dependencies are decoupled by interfaces. Concrete implementations can thus be switched by configuration or at runtime.

Installation
------------

[](#installation)

### Composer install

[](#composer-install)

Just require the extension. Dependencies will be installed automatically.

```
composer require undkonsorten/html-mail-utility

```

### Non-Composer mode

[](#non-composer-mode)

Using without composer ist not supported!

Fluid ViewHelpers
-----------------

[](#fluid-viewhelpers)

To start using the ViewHelpers, don‘t forget to include the corresponding namespace in your template files:

```

```

### Inky view helper

[](#inky-view-helper)

```

```

Parameters:

- **markup** (string, optional): You can pass markup in this attribute. Leave unset to use tag content instead.
- **gridColums** (int, optional): Set this to change the underlying grid system column calculations are based on. Defaults to 12.
- **aliases** (array, optional): Aliases allow you to define aliases for inky tags, e.g. write `` instead of `` in the example above.

Output:

Markup with inky tags transformed to table legacy.

#### Beware of uncached actions!!!

[](#beware-of-uncached-actions)

Uncached Action will not be rendered with Inky. The transforming won't work and the complete output of this action won't be shown! You have no output of uncached action!

### CSS Inline view helper

[](#css-inline-view-helper)

```

```

Parameters:

- **html** (string, optional): You can pass HTML markup in this attribute. Leave unset to use tag content instead.
- **css** (string, optional): Put additional CSS styles here.
- **cssFile** (string, optional): You can specify a CSS file for inlining. You can use `EXT:` syntax.

Output:

HTML markup with inline `style` attributes according to matching CSS rules.

### Plain text view helper

[](#plain-text-view-helper)

```

```

- **html** (string, optional): You can pass HTML markup in this attribute. Leave unset to use tag content instead.
- **baseUrl** (string, optional): If set, this value will be prepended to all on-site links to make them accessible from plain text. Not needed if your markup ships with absolute links.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance44

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~211 days

Total

2

Last Release

582d ago

Major Versions

1.0.0 → 2.0.02024-10-11

### Community

Maintainers

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

---

Top Contributors

[![kanow](https://avatars.githubusercontent.com/u/16071530?v=4)](https://github.com/kanow "kanow (6 commits)")[![cumuru](https://avatars.githubusercontent.com/u/12487311?v=4)](https://github.com/cumuru "cumuru (1 commits)")

### Embed Badge

![Health badge](/badges/undkonsorten-html-mail-utility/health.svg)

```
[![Health](https://phpackages.com/badges/undkonsorten-html-mail-utility/health.svg)](https://phpackages.com/packages/undkonsorten-html-mail-utility)
```

###  Alternatives

[fedeisas/laravel-mail-css-inliner

Inline the CSS of your HTML emails using Laravel

5974.6M3](/packages/fedeisas-laravel-mail-css-inliner)[illuminate/mail

The Illuminate Mail package.

5910.1M391](/packages/illuminate-mail)[robertotru/to-inline-style-email-bundle

A Symfony2 bundle for using the CssToInlineStyles translator by tijsverkoyen

59384.3k](/packages/robertotru-to-inline-style-email-bundle)[putyourlightson/craft-campaign

Send and manage email campaigns, contacts and mailing lists.

6435.0k1](/packages/putyourlightson-craft-campaign)[in2code/luxletter

Free newsletter extension for TYPO3 for an individual email marketing. A lot of analytics and modern concepts. Works with and without EXT:lux.

2572.3k2](/packages/in2code-luxletter)[fof/webhooks

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

2518.3k](/packages/fof-webhooks)

PHPackages © 2026

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