PHPackages                             eschmar/mailer-bundle - 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. eschmar/mailer-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

eschmar/mailer-bundle
=====================

Conveniently send html/plaintext emails in Symfony 4.

v1.0.1(7y ago)0248MITHTMLPHP &gt;=7.1.0

Since Apr 24Pushed 7y ago1 watchersCompare

[ Source](https://github.com/eschmar/mailer-bundle)[ Packagist](https://packagist.org/packages/eschmar/mailer-bundle)[ Docs](https://github.com/eschmar/mailer-bundle)[ RSS](/packages/eschmar-mailer-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Mailer Bundle
=============

[](#mailer-bundle)

Conveniently send html/plaintext emails in Symfony4. This bundle ships with a version of [Mailgun's Action Email](https://github.com/mailgun/transactional-email-templates) ready to send emails.

[![test.html.twig](https://raw.githubusercontent.com/eschmar/mailer-bundle/master/test.html.twig.jpg)](https://raw.githubusercontent.com/eschmar/mailer-bundle/master/test.html.twig.jpg)

Installation
============

[](#installation)

Composer ([Packagist](https://packagist.org/packages/eschmar/mailer-bundle)):

```
composer require eschmar/mailer-bundle ^1.0.0
```

Usage
=====

[](#usage)

The `eschmar_mailer` service expects templates to have the 3 blocks `subject`, `body_html` and `body_plain` and already includes a layout file `@EschmarMailer/Mail/layout.html.twig` ready to go. I do not recommend using embedded base64 images, this is just for demo purposes. Of course this layout is entirely optional, you may build your own templates. Using the Twig tag `{% cssinline %}{% endcssinline %}`, CSS styles are inlined (some email clients strip out `` and `` tags).

```
use Eschmar\MailerBundle\Service\Mailer;
// ...

if (!$mailer->send("@EschmarMailer/Mail/test.html.twig", [], $from, $to[, $bcc])) {
    // Oops!
    return;
}

// success
```

License
=======

[](#license)

MIT License.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~302 days

Total

4

Last Release

2770d ago

Major Versions

v0.2.0 → v1.0.02018-10-17

PHP version history (2 changes)v0.1.0PHP &gt;=5.3.3

v1.0.0PHP &gt;=7.1.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2345471?v=4)[Marcel Eschmann](/maintainers/eschmar)[@eschmar](https://github.com/eschmar)

---

Top Contributors

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

---

Tags

mailersymfonysymfony-bundletwigsymfonymailmailercss inlineinlined

### Embed Badge

![Health badge](/badges/eschmar-mailer-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/eschmar-mailer-bundle/health.svg)](https://phpackages.com/packages/eschmar-mailer-bundle)
```

###  Alternatives

[boekkooi/jquery-validation-bundle

Jquery form validation bundle for symfony 2

2773.9k1](/packages/boekkooi-jquery-validation-bundle)[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)[dotkernel/dot-mail

Dotkernel mail component based on symfony mailer

1140.0k5](/packages/dotkernel-dot-mail)

PHPackages © 2026

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