PHPackages                             pixelart/swiftmailer-manipulator-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. [Testing &amp; Quality](/categories/testing)
4. /
5. pixelart/swiftmailer-manipulator-bundle

ActiveLibrary[Testing &amp; Quality](/categories/testing)

pixelart/swiftmailer-manipulator-bundle
=======================================

Manipulates outgoing mails from Swiftmailer

1.1.0(9y ago)2982[1 issues](https://github.com/pixelart/swiftmailer-manipulator-bundle/issues)MITPHPPHP ^5.4 || ^7.0

Since Oct 12Pushed 9y ago5 watchersCompare

[ Source](https://github.com/pixelart/swiftmailer-manipulator-bundle)[ Packagist](https://packagist.org/packages/pixelart/swiftmailer-manipulator-bundle)[ RSS](/packages/pixelart-swiftmailer-manipulator-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (6)Versions (3)Used By (0)

Swiftmailer Manipulator for Symfony
===================================

[](#swiftmailer-manipulator-for-symfony)

[![Build Status](https://camo.githubusercontent.com/6de8bfd885f351d191b181760f50d8dcba91cdc7e0f8b4e5b5eb15cbc4ee1d39/68747470733a2f2f7472617669732d63692e6f72672f706978656c6172742f73776966746d61696c65722d6d616e6970756c61746f722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/pixelart/swiftmailer-manipulator-bundle)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/355818bb7ccebd7a3f593d2576503d68b8c4dc05b9ff10935258623d0df4d714/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706978656c6172742f73776966746d61696c65722d6d616e6970756c61746f722d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pixelart/swiftmailer-manipulator-bundle/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/b680c60dd040e3ba84c9f282604812b0273224679d8d6534faaefafa2dbc69f3/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706978656c6172742f73776966746d61696c65722d6d616e6970756c61746f722d62756e646c652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pixelart/swiftmailer-manipulator-bundle/?branch=master)[![Code Style](https://camo.githubusercontent.com/982d4e8e949330e0169802bc1cddc86f68773c7647eefe312599f2c8b862570c/68747470733a2f2f7374796c6563692e696f2f7265706f732f37303630363531362f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/70606516)

Sometimes you have staging systems, where you can't install [MailHog](https://github.com/mailhog/MailHog) and using `delivery_address` or `disable_delivery` on the SwiftmailerBundle is not enough. For example your customer wants the mail to be really delivered.

But maybe the crafted mail goes to a partner, retailer, user, whatever and now they are worried why they got them (for example notification systems).

This bundle can help you! It provides a plugin into Swiftmailer, which allows you to modify the subject or body or the from address of every message before delivery.

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

[](#installation)

### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require pixelart/swiftmailer-manipulator-bundle ^1.0
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md) of the Composer documentation.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
