2017 © Pedro Peláez
 

cakephp-plugin sendgrid

Sendgrid plugin for CakePHP

image

madalinignisca/sendgrid

Sendgrid plugin for CakePHP

  • Thursday, April 14, 2016
  • by madalinignisca
  • Repository
  • 1 Watchers
  • 1 Stars
  • 52 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 1 Versions
  • 6 % Grown

The README.md

Sendgrid plugin for CakePHP

details on installation tbd, (*1)

Installation

You can install this plugin into your CakePHP application using composer., (*2)

The recommended way to install composer packages is:, (*3)

composer require madalinignisca/sendgrid

Configuration

Method 1 (modern, using ENV)

Add to config/bootstrap.php above, (*4)

Email::configTransport(Configure::consume('EmailTransport'));

the following line, (*5)

Plugin::load('MadalinIgnisca/Sendgrid', ['bootstrap' => true]);

The plugin loads from dotenv the following: SENDGRID_USERNAME SENDGRID_PASSWORD or SENGRID_API, (*6)

Method 2 (classic, hardcoded credentials)

Add in your app.php file, in the EmailTransport item, (*7)

'EmailTransport' => [
        ...
        'sendgrid' => [
            'className' => '\MadalinIgnisca\Sendgrid\Mailer\Transport\SendgridTransport',
            'username' => 'your_username_or_api_key',
            'password' => 'your_password_or_null_if_api_key,
        ]
        ...
    ],

Make sure if using V4 of Sendgrid, you set the API key as username (will alter code to also support config as 'apikey') for now., (*8)

To use it by default, set your default transport to sendgrid in the Email config., (*9)

The Versions

14/04 2016

dev-master

9999999-dev

Sendgrid plugin for CakePHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Madalin Ignisca

cakephp sendgrid