PHPackages                             disjfa/mail-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. disjfa/mail-bundle

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

disjfa/mail-bundle
==================

Mail bundle for symfony, can also be use in glynn-admin-symfony

0.1.4(6y ago)211MITCSSPHP ^7.2.9

Since Nov 14Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (11)Versions (4)Used By (0)

Mail bundle
===========

[](#mail-bundle)

[![Check on packagist](https://camo.githubusercontent.com/487eae1bd910797fc019470131cc8416e6c5b2ae0ac63bf781aad3ab9673963d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6469736a66612f6d61696c2d62756e646c65)](https://packagist.org/packages/disjfa/mail-bundle)[![MIT License](https://camo.githubusercontent.com/7aed043093c38aa3959d15689ca3efa7f756053984ef89a8eaf926f1df3bb542/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6469736a66612f6d61696c2d62756e646c652e737667)](https://github.com/disjfa/mail-bundle/blob/master/LICENSE)

[![Watch on GitHub](https://camo.githubusercontent.com/e82bce4a0c3020df0bb593337a85664cb68ecff38cbbbdef31da44d9948ae320/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f77617463686572732f6469736a66612f6d61696c2d62756e646c652e7376673f7374796c653d736f6369616c)](https://github.com/disjfa/mail-bundle/watchers)[![Star on GitHub](https://camo.githubusercontent.com/1ef2f4d7c200978c5b33c7ee1d1ba32cdd35e07f07a7fae5814ef349cf66bedc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f6469736a66612f6d61696c2d62756e646c652e7376673f7374796c653d736f6369616c)](https://github.com/disjfa/mail-bundle/stargazers)[![Tweet](https://camo.githubusercontent.com/e7fe0fd94c538a480ef2287d334518ccd123a16bcc6e22e81a5d8df7c883ddac/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f68747470732f6769746875622e636f6d2f6469736a66612f6d61696c2d62756e646c652e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Check%20out%20mail-bundle!%20-%20Cool%mail%20templates%20for%20symfony%20template!%20Thanks%20@disjfa%20https://github.com/disjfa/mail-bundle%20%F0%9F%A4%97)

### Why is this bundle here

[](#why-is-this-bundle-here)

In every project i need to build a way to send emails. Now symfony has released the [Mime Component](https://symfony.com/doc/current/components/mime.html) and the [Mailer Component](https://symfony.com/doc/current/components/mailer.html). Lets see what we can do to make live easier for us people who send emails.

### Instalation

[](#instalation)

```
composer require disjfa/mail-bundle

```

### Setup the interface

[](#setup-the-interface)

Setup the routes in `config/routes/disjfa_mail.yaml`. Here you can edit emails setup in your application.

```
disjfa_mail:
    resource: '@DisjfaMailBundle/Controller/'
    type: annotation
    prefix: '/admin'
```

### Make you own template

[](#make-you-own-template)

Create a class that extends the `MailInterface`. Implement the name, subject and content as you want. You can inject the `Translator` to add simple translations or the twig `Environment` to render out templates.

```
