PHPackages                             emielmolenaar/transactional-email-templates - 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. [Templating &amp; Views](/categories/templating)
4. /
5. emielmolenaar/transactional-email-templates

ActiveLibrary[Templating &amp; Views](/categories/templating)

emielmolenaar/transactional-email-templates
===========================================

Responsive transactional HTML email templates, from Mailgun.

1.1(6y ago)25.0kMITHTML

Since May 17Pushed 6y ago1 watchersCompare

[ Source](https://github.com/emielmolenaar/transactional-email-templates)[ Packagist](https://packagist.org/packages/emielmolenaar/transactional-email-templates)[ Docs](https://github.com/emielmolenaar/transactional-email-templates)[ RSS](/packages/emielmolenaar-transactional-email-templates/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Responsive transactional HTML email templates
=============================================

[](#responsive-transactional-html-email-templates)

Transactional HTML emails often get neglected. **Styling HTML email is painful**. Tables, inline CSS, unsupported CSS, desktop clients, web clients, mobile clients, various devices, various providers.

We’ve tried to remove some of the pain for you and open-sourced a collection of common templates for transactional email.

[![](https://camo.githubusercontent.com/8c66533e61332b644b13b7427e8fb45ebcafdb0dcf40b638a1b782bcb61d89ac/68747470733a2f2f6d61696c67756e2e67686f73742e696f2f636f6e74656e742f696d616765732f323031342f4175672f69636f6e732e706e67)](https://camo.githubusercontent.com/8c66533e61332b644b13b7427e8fb45ebcafdb0dcf40b638a1b782bcb61d89ac/68747470733a2f2f6d61696c67756e2e67686f73742e696f2f636f6e74656e742f696d616765732f323031342f4175672f69636f6e732e706e67)

- [Action email](http://mailgun.github.io/transactional-email-templates/action.html)
- [Email alert](http://mailgun.github.io/transactional-email-templates/alert.html)
- [Billing email](http://mailgun.github.io/transactional-email-templates/billing.html)

Each template is **responsive** and each has been **tested** in all the **popular email clients**.

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

[](#how-to-use)

- Use these email templates for your transactional emails
- Use them as is or think of them as boilerplates for more detailed emails
- Ensure you [inline the CSS](#inline-the-css) before sending the email out

What are transactional emails?
------------------------------

[](#what-are-transactional-emails)

Typically any email that is triggered by or sent automatically from your application.

- Welcome emails
- Actionable emails
- Password resets
- Receipts
- Monthly invoices
- Support requests
- App error alerts
- Reminders
- etc.

Inline the CSS
--------------

[](#inline-the-css)

Before sending HTML emails **you should inline your CSS**.

We recommend using [Premailer](http://premailer.dialect.ca/) to accomplish this.

Our repo contains both the original templates with a separate CSS stylesheet, as well as templates with CSS already inlined for you to preview. See the `/templates/inlined` folder.

Tested and verified
-------------------

[](#tested-and-verified)

We’ve tested these email templates across all the major desktop, web and mobile clients, using Litmus. [See the test results.](https://litmus.com/pub/333e2b6/screenshots)

[![](https://camo.githubusercontent.com/6a69a8e15e5d2a085f67b017bd311fb3703bc70c2b1cb72810a6e36904e254cf/687474703a2f2f692e696d6775722e636f6d2f6558396659774c2e706e67)](https://camo.githubusercontent.com/6a69a8e15e5d2a085f67b017bd311fb3703bc70c2b1cb72810a6e36904e254cf/687474703a2f2f692e696d6775722e636f6d2f6558396659774c2e706e67)

Email design workflow with Grunt
--------------------------------

[](#email-design-workflow-with-grunt)

You also might be interested in this [Grunt task](https://github.com/leemunroe/grunt-email-design) for compiling and testing html emails. We used this to help design and test our transactional emails.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 80% 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 ~1310 days

Total

2

Last Release

2385d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e785614e832929af27500e82c15157f3df1968afc1cbba3b0a418160c9410eb?d=identicon)[emiel.molenaar](/maintainers/emiel.molenaar)

---

Top Contributors

[![leemunroe](https://avatars.githubusercontent.com/u/15963?v=4)](https://github.com/leemunroe "leemunroe (32 commits)")[![lembitk](https://avatars.githubusercontent.com/u/1476817?v=4)](https://github.com/lembitk "lembitk (3 commits)")[![emielmolenaar](https://avatars.githubusercontent.com/u/2470795?v=4)](https://github.com/emielmolenaar "emielmolenaar (2 commits)")[![siliconforks](https://avatars.githubusercontent.com/u/1156399?v=4)](https://github.com/siliconforks "siliconforks (2 commits)")[![rektide](https://avatars.githubusercontent.com/u/53243?v=4)](https://github.com/rektide "rektide (1 commits)")

---

Tags

csse-mailhtmlresponsivetemplatetransactionaltransactional-emailsmailtemplatemailgun

### Embed Badge

![Health badge](/badges/emielmolenaar-transactional-email-templates/health.svg)

```
[![Health](https://phpackages.com/badges/emielmolenaar-transactional-email-templates/health.svg)](https://phpackages.com/packages/emielmolenaar-transactional-email-templates)
```

###  Alternatives

[phpoffice/phpword

PHPWord - A pure PHP library for reading and writing word processing documents (OOXML, ODF, RTF, HTML, PDF)

7.6k37.4M222](/packages/phpoffice-phpword)[rize/uri-template

PHP URI Template (RFC 6570) supports both expansion &amp; extraction

418145.2M56](/packages/rize-uri-template)[text/template

Simple and secure string-template-engine (Twig-like syntax) with nested if/elseif/else, loops, filters. Simple OOP api: Just one class doing the job (2-lines of code). Fast and secure: No code-generation, no eval'ed() code. Extensible by callbacks. Fully tested. Rich examples included.

38204.1k10](/packages/text-template)[dansmaculotte/laravel-mail-template

A mail template driver to send emails with

353.0k](/packages/dansmaculotte-laravel-mail-template)[larablocks/pigeon

A more flexible email message builder for Laravel 5 including chained methods, reusable message configurations, and message layout and template view management.

143.7k](/packages/larablocks-pigeon)[muratbsts/mail-template

This package is a easy to use mail template collection for Laravel 5.x.

191.3k](/packages/muratbsts-mail-template)

PHPackages © 2026

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