2017 © Pedro Peláez
 

symfony-bundle swiftmailer-send-grid-bundle

Swiftmailer Transport and Symfony bundle for Sendgrid

image

gulaandrij/swiftmailer-send-grid-bundle

Swiftmailer Transport and Symfony bundle for Sendgrid

  • Tuesday, July 3, 2018
  • by gulaandrij
  • Repository
  • 1 Watchers
  • 9 Stars
  • 821 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 0 Open issues
  • 8 Versions
  • 87 % Grown

The README.md

SwiftmailerSendGridBundle

Latest Version Software License Build Status, (*1)

Symfony 2/3 bundle for SendGrid. Utilizes the SendGrid PHP Library https://github.com/sendgrid/sendgrid-php to make it compatiable with SwiftMailer., (*2)

Installation Example

composer require expertcoder/swiftmailer-send-grid-bundle, (*3)

or, (*4)

composer.json, (*5)

"require": {
    ...
    "expertcoder/swiftmailer-send-grid-bundle": "~1.0"
}

AppKernel.php, (*6)

$bundles = [
    // ...
    new ExpertCoder\Swiftmailer\SendGridBundle\ExpertCoderSwiftmailerSendGridBundle(),
];

parameters.yml.dist, (*7)

parameters:
    sendgrid_api_key: PleaseEnterSendGridApiKey

config.yml, (*8)

swiftmailer:
    transport: expertcoder_swift_mailer.send_grid.transport

expert_coder_swiftmailer_send_grid:
    api_key: %sendgrid_api_key%
    categories: [my_category] # optional, will be added to all mails sent

Symfony 3

Since Symfony 3.2, you must name the custom transport service swiftmailer.mailer.transport.< name >, (*9)

services.yml, (*10)

services:
    swiftmailer.mailer.transport.expertcoder_swift_mailer.send_grid.transport:
      alias: expertcoder_swift_mailer.send_grid.transport

config.yml, (*11)

imports:
    - { resource: services.yml }

Important !

Following RFC 1341, section 7.2, if either text/html or text/plain are to be sent in your email: text/plain needs to be first, followed by text/html, followed by any other content., (*12)

For more informations, please see SwiftMailer and RFC 1341, (*13)

The Versions

24/05 2018
16/04 2018
03/04 2018
18/02 2018

1.1.0

1.1.0.0 https://github.com/expertcoder/SwiftmailerSendGridBundle

Swiftmailer Transport and Symfony bundle for Sendgrid

  Sources   Download

MIT

The Requires

 

The Development Requires

by Samual Anthony

13/02 2018

1.0.0

1.0.0.0 https://github.com/expertcoder/SwiftmailerSendGridBundle

Swiftmailer Transport and Symfony bundle for Sendgrid

  Sources   Download

The Requires

 

by Samual Anthony