2017 © Pedro Peláez
 

library swiftmailer-manipulator-bundle

Manipulates outgoing mails from Swiftmailer

image

pixelart/swiftmailer-manipulator-bundle

Manipulates outgoing mails from Swiftmailer

  • Saturday, December 3, 2016
  • by patkar
  • Repository
  • 5 Watchers
  • 2 Stars
  • 71 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 8 % Grown

The README.md

Swiftmailer Manipulator for Symfony

Build Status Scrutinizer Code Quality Code Coverage Code Style, (*1)

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., (*2)

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)., (*3)

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., (*4)

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:, (*5)

$ 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., (*6)

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:, (*7)

<?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., (*8)

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., (*9)

Bug tracking

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

MIT License

License can be found here., (*11)

Code of Conduct

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

The Versions

03/12 2016

dev-master

9999999-dev

Manipulates outgoing mails from Swiftmailer

  Sources   Download

MIT

The Requires

 

The Development Requires

mail testing swiftmailer symfony dev manipulation manipulator staging stage

19/10 2016

1.1.0

1.1.0.0

Manipulates outgoing mails from Swiftmailer

  Sources   Download

MIT

The Requires

 

The Development Requires

mail testing swiftmailer symfony dev manipulation manipulator staging stage

12/10 2016

1.0.0

1.0.0.0

Manipulates outgoing mails from Swiftmailer

  Sources   Download

MIT

The Requires

 

The Development Requires

mail testing swiftmailer symfony dev manipulation manipulator staging stage