pixelart/swiftmailer-manipulator-bundle

Manipulates outgoing mails from Swiftmailer

Maintainers

👁 EmiiKhaos

Package info

github.com/pixelart/swiftmailer-manipulator-bundle

pkg:composer/pixelart/swiftmailer-manipulator-bundle

Statistics

Installs: 98

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 1

1.1.0 2016-10-19 11:33 UTC

Requires

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 8fe420bbaf4548dad38ed76585da24a1045936b6

mailsymfonytestingmanipulatorswiftmailermanipulationdevstagingstage

This package is auto-updated.

Last update: 2026-06-15 01:44:05 UTC


README

👁 Build Status
👁 Scrutinizer Code Quality
👁 Code Coverage
👁 Code Style

Sometimes you have staging systems, where you can't install 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

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 of the Composer documentation.

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:

<?php
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
 public function registerBundles()
 {
 $bundles = array(
 // ...

 new Pixelart\Bundle\SwiftmailerManipulatorBundle\PixelartSwiftmailerManipulatorBundle(),
 );

 // ...
 }

 // ...
}

For more informations, see the configuration page.

Full configuration options

# app/config/config.yml

pixelart_swiftmailer_manipulator:
 mailers:
 first_mailer:
 prepend_subject: 'String prepend to subject' # String which is prepended onto the subject
 prepend_body: 'path/to/prepend_body.txt.twig' # Path to template which is prepended onto the mail body
 from_address: 'altered-form@example.com' # The address message should be sent from
 second_mailer:
 # ...

Contributing

The contributing guidelines contains all the information about contributing to the bundle.

Bug tracking

We use GitHub issues and waffle.io board to track issues. If you have found bug, please create an issue.

MIT License

License can be found here.

Code of Conduct

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code.