PHPackages                             svb/mailing - 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. svb/mailing

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

svb/mailing
===========

Enable third party mailing via connectors that provide api access for sending templated e-mails

v1.0.3(5y ago)029MITPHP

Since Mar 4Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SVB-GmbH/mailing-bundle)[ Packagist](https://packagist.org/packages/svb/mailing)[ RSS](/packages/svb-mailing/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (8)Versions (5)Used By (0)

SVB Mailing
===========

[](#svb-mailing)

This bundle has been developed in order to send mails from multiple systems without writing a single line of html nor care about any localizations.

How to install/configure
------------------------

[](#how-to-installconfigure)

1. `composer require svb/mailing`
2. Make sure the bundle is correctly registered in either `config/bundles.php` (sf4/5) or `app/AppKernel.php:registerBundles` (sf3)
3. Add a configuration for the bundle like this: ```
    svb_mailing:
       tries_count: 5 # number of resend tries of a mail before the delivery is set to failed (default 5)
       database:
          url: 'mysql://root:root@mysql/svb_mailing'
       connectors:
          # see connectors config

    ```

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

[](#how-to-use)

1. Inject the service `svb_mailing.mailer` (SVB\\Mailing\\Mailer when using the sf auto wiring)
2. Create one or more mail objects using one of the many mail templates located within the namespace `SVB\Mailing\Mail\`
3. Pass your object(s) into the sendMails method of the `svb_mailing.mailer` service
4. You mail should either been sent, or you should have got an exception what to do

Adding Mail Templates
---------------------

[](#adding-mail-templates)

1. Create a new class implementing MailInterface (AbstractMail to make your life a bit easier)
    *Hint: Mail Templates do not necessarily need to be in one folder, use sub directories to order them!*
2. Add the template to the parameter "svb\_mailing.mail\_identifiers" (identifier string =&gt; fully qualified classname)

***Pro tip:** Definitely consider creating a reusable bundle for your templates, that way you can use your templates across all projects!*

Asynchronous resending of failed messages
-----------------------------------------

[](#asynchronous-resending-of-failed-messages)

Since most provider handle sent messages using message queues, most responses for a "send" request will return "200 OK". The mailing bundle provides easy functionality for checking message states and resending failed messages using a database to store all messages and their states. Since the worker for this needs to be executed asynchronously, we implemented a symfony command for this: `bin/console svb:mailing:worker`. Make sure this command is executed at least once every hour (the more frequent it's executed the better!) to ensure your mails getting resent, and the states are updated correctly.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~9 days

Total

4

Last Release

1874d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/03c69b88b42576bd6a36da93923bd70e21c096e91b381eececbd3a87bf5c82de?d=identicon)[svb](/maintainers/svb)

---

Top Contributors

[![siemendev](https://avatars.githubusercontent.com/u/11353665?v=4)](https://github.com/siemendev "siemendev (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/svb-mailing/health.svg)

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

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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