iandenh/cakephp-sendgrid

SendgridEmail plugin for CakePHP

Installs: 98 694

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 3

Forks: 4

Open Issues: 1

Type:cakephp-plugin

4.0.0-beta1 2023-10-22 14:47 UTC

README

This is a Sendgrid Email Transport plugin for CakePHP 3 and 4. This branch contains the code for CakePHP 4, check branch 3x for CakePHP 3.

Installation

You can install this plugin into your CakePHP application using composer.

composer require iandenh/cakephp-sendgrid

Setting up your CakePHP application

In you app.php:

'Email' => [
    'Sendgrid' => [
        'transport' => 'SendgridEmail',
    ],
],
'EmailTransport' => [
    'SendgridEmail' => [
        'className' => 'SendgridEmail.Sendgrid',
        'api_key' => 'API_KEY_HERE',
        // Config options below are added in version 2
        "click_tracking" => false, // true or false to toggle sendgrids click tracking
        "open_tracking" => false, // true or false to toggle sendgrids open tracking
    ]
]

Based of Lennaert/cakephp3-mandrill