2017 © Pedro Peláez
 

symfony-bundle swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

image

dugandzic/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  • Thursday, June 30, 2016
  • by WorldWarIII
  • Repository
  • 1 Watchers
  • 0 Stars
  • 361 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 0 Open issues
  • 7 Versions
  • 4 % Grown

The README.md

Swiftmailer Mailgun bundle

Latest Stable Version codecov.io Total Downloads Monthly Downloads Software License, (*1)

This bundle adds an extra transport to the swiftmailer service that uses the mailgun http interface for sending messages., (*2)

Installation

composer require dugandzic/swiftmailer-mailgun-bundle

Also add to your AppKernel:, (*3)

new cspoo\Swiftmailer\MailgunBundle\cspooSwiftmailerMailgunBundle(),

Configure your application with the credentials you find on the domain overview on the Mailgun.com dashboard., (*4)

``` yaml // app/config/config.yml: cspoo_swiftmailer_mailgun: key: "key-xxxxxxxxxx" domain: "mydomain.com", (*5)

Swiftmailer Configuration

swiftmailer: transport: "mailgun" spool: { type: memory } # This will start sending emails on kernel.terminate event, (*6)

Note that the swiftmailer configuration is the same as the standard one - you just 
change the mailer_transport parameter.

## Usage

First craft a message:

```php
$message = \Swift_Message::newInstance()
        ->setSubject('Hello Email')
        ->setFrom('send@example.com')
        ->setTo('recipient@example.com')
        ->setBody(
            $this->renderView(
                'HelloBundle:Hello:email.txt.twig',
                array('name' => $name)
            )
        )
    ;

Then send it as you normally would with the mailer service. Your configuration ensures that you will be using the Mailgun transport., (*7)

$this->container->get('mailer')->send($message);

Todo: * [x] Add mailgun as a separate transport to the normal Swiftmailer service * [ ] Tests, (*8)

The Versions

30/06 2016

dev-master

9999999-dev https://github.com/tehplague/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  Sources   Download

GPL-2.0+

The Requires

 

swiftmailer mailgun e-mail

10/01 2016

0.2.1

0.2.1.0 https://github.com/tehplague/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  Sources   Download

GPL-2.0+

The Requires

 

swiftmailer mailgun e-mail

23/10 2015

0.2.0

0.2.0.0 https://github.com/tehplague/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  Sources   Download

GPL

The Requires

 

swiftmailer mailgun e-mail

01/06 2015

0.1.2

0.1.2.0 https://github.com/tehplague/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  Sources   Download

GPL

The Requires

 

swiftmailer mailgun e-mail

20/04 2015

0.1.1

0.1.1.0 https://github.com/tehplague/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  Sources   Download

GPL

The Requires

 

swiftmailer mailgun e-mail

28/08 2014

0.1.0

0.1.0.0 https://github.com/tehplague/swiftmailer-mailgun-bundle

Swiftmailer Mailgun bundle

  Sources   Download

GPL

The Requires

 

swiftmailer mailgun e-mail