2017 © Pedro Peláez
 

symfony-bundle mail-bundle

Load content and send mail.

image

chris13/mail-bundle

Load content and send mail.

  • Tuesday, February 2, 2016
  • by chris13
  • Repository
  • 2 Watchers
  • 0 Stars
  • 1,598 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 19 Versions
  • 0 % Grown

The README.md

SensioLabsInsight, (*1)

Mail Bundle

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

$ composer require chris13/mail-bundle "~1"

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*3)

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

<?php
// app/AppKernel.php

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

            new Chris\Bundle\MailBundle\MailBundle(),
        );

        // ...
    }

    // ...
}

Step 3 : Configure the bundle

Add the following configuration to your config.yml, (*5)

mail:
    sendgrid:
        user: sendgrid_user
        password: sendgrid_pass
        options:
            turn_off_ssl_verification: true

Usage

For SendGrid :, (*6)

<?php

$categories = array('category1');

$mailer = $this->get('mail_bundle.send_grid_mailer');
$mailer->setCategories($categories)
       ->prepare($from, $fromName, $to = ['test@yopmail.com'], $subject, $body)
       ->send();

For SwiftMailer :, (*7)

<?php

$mailer = $this->get('mail_bundle.swift_mailer');
$mailer->prepare($from, $fromName, $to = ['test@yopmail.com'], $subject, $body)
       ->send();

Tests

Run Unit Test in the bundle:, (*8)

$ ./bin/phpunit --debug -c ./

The Versions

02/02 2016

dev-master

9999999-dev

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

02/02 2016

1.3.4

1.3.4.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

27/01 2016

1.3.3

1.3.3.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

14/01 2016

1.3.2

1.3.2.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

14/01 2016

1.3.1

1.3.1.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

07/01 2016

1.3.0

1.3.0.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

05/01 2016

1.2.8

1.2.8.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Christophe Chausseray

mail swiftmailer sendgrid

16/12 2015

1.2.7

1.2.7.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

12/11 2015

1.2.6

1.2.6.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

12/11 2015

1.2.5

1.2.5.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

11/11 2015

1.2.4

1.2.4.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

11/11 2015

1.2.3

1.2.3.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

11/11 2015

1.2.2

1.2.2.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

10/11 2015

1.2.1

1.2.1.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

10/11 2015

1.2.0

1.2.0.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

09/11 2015

1.1.1

1.1.1.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

06/11 2015

1.1.0

1.1.0.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

06/11 2015

1.0.1

1.0.1.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid

06/11 2015

1.0.0

1.0.0.0

Load content and send mail.

  Sources   Download

MIT

The Requires

 

by Christophe Chausseray

mail swiftmailer sendgrid