PHPackages                             libre-informatique/email-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. [Mail &amp; Notifications](/categories/mail)
4. /
5. libre-informatique/email-bundle

ActiveSymfony-bundle[Mail &amp; Notifications](/categories/mail)

libre-informatique/email-bundle
===============================

Email Bundle for Symfony

0.6.4(8y ago)02.6k22LGPL-3.0PHPPHP &gt;=7.1

Since Feb 21Pushed 8y ago6 watchersCompare

[ Source](https://github.com/libre-informatique/EmailBundle)[ Packagist](https://packagist.org/packages/libre-informatique/email-bundle)[ Docs](https://github.com/libre-informatique/SymfonyLibrinfoEmailBundle)[ RSS](/packages/libre-informatique-email-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (12)Versions (12)Used By (2)

SymfonyLibrinfoEmailBundle
==========================

[](#symfonylibrinfoemailbundle)

[![Travis](https://camo.githubusercontent.com/07f0e8bfa76b8f8640002c6a5c66dd0d20222acab2540e637873f186139a0f0e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6c696272652d696e666f726d6174697175652f456d61696c42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/libre-informatique/EmailBundle)[![Coveralls](https://camo.githubusercontent.com/dba0ba1ca6e6c3fe213dbd15361ce9e537c47a431f233115e79aa5d2b9278ea1/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6c696272652d696e666f726d6174697175652f456d61696c42756e646c652e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/libre-informatique/EmailBundle?branch=master)[![License](https://camo.githubusercontent.com/4000132e77563870e81f8d76452dd499bd9b0b69c4ebf875526927472d7af976/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6c696272652d696e666f726d6174697175652f456d61696c42756e646c652e7376673f7374796c653d666c61742d737175617265)](./LICENCE.md)

[![Latest Stable Version](https://camo.githubusercontent.com/d07c5f346a8f74649b4d883e442ddb4b28778da53a8fea4b87fc130fa7c2891a/68747470733a2f2f706f7365722e707567782e6f72672f6c696272652d696e666f726d6174697175652f656d61696c2d62756e646c652f762f737461626c65)](https://packagist.org/packages/libre-informatique/email-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/6bfdbed3619043393a32f58e33cb33fdfd6a1eb11293095a6b0a9a98420cc45e/68747470733a2f2f706f7365722e707567782e6f72672f6c696272652d696e666f726d6174697175652f656d61696c2d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/libre-informatique/email-bundle)[![Total Downloads](https://camo.githubusercontent.com/9724c268bd37e3f100f3fcdee77cadcd949e7156f040ad847a433730c3af38ec/68747470733a2f2f706f7365722e707567782e6f72672f6c696272652d696e666f726d6174697175652f656d61696c2d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/libre-informatique/email-bundle)

About
-----

[](#about)

The Libre Informatique *EmailBundle* leverages Swiftmailer and the Libre Informatique *CoreBundle* to provide seemless email and newsletter functionalities. Features include database spooling, configurable spool flush command, email openings and link clicks tracking along with stats display, inline attachments, templating, duplication, ...

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

[](#installation)

`$ composer require libre-informatique/email-bundle`

```
// app/AppKernel.php
// ...
public function registerBundles()
{
    $bundles = array(
        // ...

        // the libre-informatique bundles
        new Librinfo\EmailBundle\LibrinfoEmailBundle(),

        // your personal bundles
        // ...
    );
}
```

Configuration
-------------

[](#configuration)

### Dependencies

[](#dependencies)

```
    // app/AppKernel.php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...

            // Sonata
            new Sonata\CoreBundle\SonataCoreBundle(),
            new Sonata\BlockBundle\SonataBlockBundle(),
            new Knp\Bundle\MenuBundle\KnpMenuBundle(),
            new Sonata\DoctrineORMAdminBundle\SonataDoctrineORMAdminBundle(),
            new Sonata\AdminBundle\SonataAdminBundle(),
            new Sonata\IntlBundle\SonataIntlBundle(),

            // Blast
            new Blast\OuterExtensionBundle\BlastOuterExtensionBundle(),
            new Blast\CoreBundle\BlastCoreBundle(),
            new lbr\BlastTestBundle\BlastTestBundle(),
            new Blast\BaseEntitiesBundle\BlastBaseEntitiesBundle(),
            new Blast\UtilsBundle\BlastUtilsBundle(),

            // Attachments
            new Librinfo\MediaBundle\LibrinfoMediaBundle(),

            // Wisiwig editor
            new Stfalcon\Bundle\TinymceBundle\StfalconTinymceBundle(),

            // your personal bundles
            // ...
        );
    }
    // ...
```

```
# app/config/routing.yml
admin:
    resource: '@SonataAdminBundle/Resources/config/routing/sonata_admin.xml'
    prefix: /

_sonata_admin:
    resource: .
    type: sonata_admin
    prefix: /

blast_core:
    resource: "@BlastCoreBundle/Resources/config/routing.yml"
    prefix:   /admin

email:
    resource: "@LibrinfoEmailBundle/Resources/config/routing.yml"
    prefix: /admin

```

```
# app/config/config.yml
sonata_block:
    default_contexts: [cms]
    blocks:
        # Enable the SonataAdminBundle block
        sonata.admin.block.admin_list:
            contexts:   [admin]
        # Your other blocks

```

But please, refer to the source doc to get up-to-date :

Just notice that the `prefix` value is `/` instead of `/admin` as advised by the Sonata Project... By the way, it means that this access is universal, and not a specific "backend" interface. That's a specificity of a software package that intends to be focused on professional workflows.

Don't forget to publish assets as some features of the bundle such as file upload rely heavily on javascript.

Add the custom form field template to your config.yml:

```
# app/config/config.yml
twig:
    debug: '%kernel.debug%'
    strict_variables: '%kernel.debug%'
    form_themes:
        - 'SonataCoreBundle:Form:datepicker.html.twig'
        - 'SonataCoreBundle:Form:colorpicker.html.twig'
        - 'BlastCoreBundle:Admin/Form:fields.html.twig'
        - 'BlastUtilsBundle:Form:fields.html.twig'
        - 'BlastBaseEntitiesBundle:Form:fields.html.twig'
        - 'LibrinfoMediaBundle:Form:fields.html.twig'

```

### Spooling

[](#spooling)

You have to configure two mailers as follows in order to use the database spooling feature (one for direct sned, the other for spool send)

```
# app/config/config.yml

swiftmailer:
    default_mailer: direct_mailer
    mailers:
        direct_mailer:
            transport: "%mailer_transport%"
            host:      "%mailer_host%"
            username:  "%mailer_user%"
            password:  "%mailer_password%"
        spool_mailer:
            transport: "%mailer_transport%"
            host:      "%mailer_host%"
            username:  "%mailer_user%"
            password:  "%mailer_password%"
            spool: { type: db }

```

To flush the queue execute the command : `$ app/console librinfo:spool:send`

Don't hesitate executing the command with --help as it has more options than the swiftmailer:spool:send

### Tracking

[](#tracking)

If you want to use the tracking functionalities, you need to add an access control rule to your security.yml that will allow anonymous users to access routes with the prefix '/tracking' like so:

```
# app/config/security.yml
access_control:
        # ...
        - { path: ^/tracking, role: IS_AUTHENTICATED_ANONYMOUSLY } # allow access to tracking controller for anonymous users

```

That's it !

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.8% 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 ~31 days

Total

9

Last Release

3163d ago

PHP version history (2 changes)0.4.2PHP &gt;=5.6

0.6.4PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0bbce846c0d9bbaf3fc4f62538f638bb1f093d651e1bca9c0c6e0d97645286f8?d=identicon)[beta](/maintainers/beta)

![](https://avatars.githubusercontent.com/u/16222295?v=4)[Marcos Bezerra de Menezes](/maintainers/marcoslibre)[@marcoslibre](https://github.com/marcoslibre)

![](https://www.gravatar.com/avatar/928e77bd50201c2a30df571e6ff90c01a8cdfe29eec21f57fb7c143ba7c1a35e?d=identicon)[RomainSanchez](/maintainers/RomainSanchez)

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

---

Top Contributors

[![RomainSanchez](https://avatars.githubusercontent.com/u/18164227?v=4)](https://github.com/RomainSanchez "RomainSanchez (72 commits)")[![FanchTheSystem](https://avatars.githubusercontent.com/u/882203?v=4)](https://github.com/FanchTheSystem "FanchTheSystem (11 commits)")[![quotidianus](https://avatars.githubusercontent.com/u/5537086?v=4)](https://github.com/quotidianus "quotidianus (2 commits)")[![erwanrolland](https://avatars.githubusercontent.com/u/28561959?v=4)](https://github.com/erwanrolland "erwanrolland (1 commits)")[![PapsOu](https://avatars.githubusercontent.com/u/5792207?v=4)](https://github.com/PapsOu "PapsOu (1 commits)")

---

Tags

symfonyemailsonataspoole-venement

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/libre-informatique-email-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/libre-informatique-email-bundle/health.svg)](https://phpackages.com/packages/libre-informatique-email-bundle)
```

###  Alternatives

[putyourlightson/craft-campaign

Send and manage email campaigns, contacts and mailing lists.

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

A Symfony2 bundle for using the CssToInlineStyles translator by tijsverkoyen

59387.0k](/packages/robertotru-to-inline-style-email-bundle)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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