PHPackages                             samdeb/easymailbundle - 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. samdeb/easymailbundle

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

samdeb/easymailbundle
=====================

The easyMailBundle, for Symfony2, provide an easy way to send email with temple

v1.0(8y ago)0189MITPHPPHP &gt;=5.3.2

Since May 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/samrodriguez/easyMailBundle)[ Packagist](https://packagist.org/packages/samdeb/easymailbundle)[ RSS](/packages/samdeb-easymailbundle/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

easyMailBundle
==============

[](#easymailbundle)

The easyMailBundle, for Symfony2, provide an easy way to send email with temple

Installing
----------

[](#installing)

easyMailBundle uses Composeris, please checkout the [composer website](http://getcomposer.org) for more information.

The simple following command will install `easyMailBundle` into your project. It also add a new entry in your `composer.json` and update the `composer.lock` as well.

```
composer require samdeb/easymailbundle:dev-master
```

Once the new project is set up, open the composer.json file and add the samdeb/easymailbundle as a dependency:

```
//composer.json
//...
"require": {
        //other bundles
        "samdeb/easymailbundle": "dev-master"
```

Save the file and have composer update the project via the command line:

```
composer update
```

Now just update the app/AppKernel.php:

```
//app/AppKernel.php
//...
    public function registerBundles()
    {
        $bundles = array(
            //Other bundles
            new ABC\EasyMailBundle\ABCEasyMailBundle(),
        );
```

### Configuration example

[](#configuration-example)

Add the bundle to orm configuration: You can configure default query parameter names and templates

```
#app/config/config.yml
#...
abc_easy_mail:
    from: system@mydomain.com
    reply: soporte@mydomain.com
    default_theme : ~

```

or

```
#app/config/config.yml
#...
abc_easy_mail:
    from: system@mydomain.com
    reply: soporte@mydomain.com
    default_theme : mytheme
    themes:
        mytheme:
            twig: ABCEasyMailBundle:Default:easyMail.html.twig
            logo: 'https://github.com/samrodriguez/easyMailBundle/blob/master/web/img/logo.png'
            title: 'Company Name'
            footer: 'Atte.'
        othertheme:
            twig: MyBundle:Default:mail.html.twig

```

and now you're done.

Usage examples:
---------------

[](#usage-examples)

### Controller (Basic)

[](#controller-basic)

```
// ABC\EasyMailBundle\Controller\DefaultController.php

class DefaultController extends Controller
{
    public function indexAction()
    {
        $mail = $this->get('easy.mailer');
        $settings = array(
                          'to'=>'email@mydomain.com',
                          'subject' => 'This is my subject',
                          'body'    => array(
                                        'content' => 'Put your text',
                                    )
                    );
        $mail->send($settings);
        return $this->render('ABCEasyMailBundle:Default:index.html.twig');
    }
}
```

### Controller (Advanced)

[](#controller-advanced)

```
// ABC\EasyMailBundle\Controller\DefaultController.php

class DefaultController extends Controller
{
    public function indexAction()
    {
        $mail = $this->get('easy.mailer');
        $settings = array('default_theme'=>'other',
                          'to'=>'email@mydomain.com',
                          /*
                          'cc'=>'myemail@mydomain.com',
                          'bcc'=> 'otheremail@mydomain.com',
                          */
                          'subject' => 'This is my subject',
                          'body'    => array(
                                        /*
                                         'logo'   => 'Mylogo.jpg',
                                         'title'  => 'Diferent Company Name',
                                         */
                                        'content' => 'Put your text',
                                        'footer'  => 'Saludos'
                                    )
                    );
        $mail->send($settings);
        return $this->render('ABCEasyMailBundle:Default:index.html.twig');
    }
}
```

### View

[](#view)

```
{% extends "ABCEasyMailBundle:Default:Layout.html.twig" %}

{% block logo %} {{logo}} {% endblock %}
{% block title %} {{title}} {% endblock %}
{% block content %} {{content}} {% endblock %}
{% block footer %} {{footer}} {% endblock %}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3277d ago

### Community

Maintainers

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

---

Top Contributors

[![samrodriguez](https://avatars.githubusercontent.com/u/1438048?v=4)](https://github.com/samrodriguez "samrodriguez (10 commits)")

---

Tags

mailSymfony2

### Embed Badge

![Health badge](/badges/samdeb-easymailbundle/health.svg)

```
[![Health](https://phpackages.com/badges/samdeb-easymailbundle/health.svg)](https://phpackages.com/packages/samdeb-easymailbundle)
```

###  Alternatives

[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[webklex/php-imap

PHP IMAP client

4365.5M14](/packages/webklex-php-imap)[zbateson/stream-decorators

PHP psr7 stream decorators for mime message part streams

4748.6M6](/packages/zbateson-stream-decorators)[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)[scullwm/mailhookbundle

A bundle to catch API webhook from differents mail service

4020.5k](/packages/scullwm-mailhookbundle)[hautzi/system-mail-bundle

This Bundle provides a nice abstraction for sending system emails

181.8k](/packages/hautzi-system-mail-bundle)

PHPackages © 2026

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