kozikaza/mindbaz-bundle

Symfony bundle to provide a Mindbaz SwiftMailer service

Installs: 1 605

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:symfony-bundle

v1.1.0 2017-04-27 07:03 UTC

This package is not auto-updated.

Last update: 2024-04-19 19:54:11 UTC


README

Symfony bundle to provide a Mindbaz SwiftMailer service.

Feel free to contribute on it!

Build Status Scrutinizer Code Quality

Installation

Installing MindbazBundle can be done easily through Composer:

composer require kozikaza/mindbaz-bundle

Register this bundle in your kernel:

// app/AppKernel.php
public function registerBundles()
{
    $bundles = [
        new Kozikaza\MindbazBundle\MindbazBundle(),
        // ...
    ];

    // ...
}

Configuration

Edit your configuration file to declare your Mindbaz mailer with credentials & campaigns:

# config.yml
swiftmailer:
    default_mailer: direct
    mailers:
        direct:
            transport: "%mailer_transport%"
            host:      "%mailer_host%"
            username:  "%mailer_user%"
            password:  "%mailer_password%"
            port:      "%mailer_port%"
            spool:
                type:  memory
        mindbaz:
            id_site:   123      # Must be integer
            username:  foo
            password:  p4$$w0rd
            campaigns:
                register:        123
                forgot-password: 456

Don't forget to change credentials & campaigns in previous example!

Credits

Created by David DELEVOYE & Vincent CHALAMON.