Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

SendGrid driver for Laravel's mail configuration

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

io-digital/laravel-sendgrid-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-sendgrid-driver

A mail driver with support for Sendgrid Web API, using the original Laravel API. This library extends the original Laravel classes, so it uses exactly the same methods.

Using this package requires a Sendgrid API key which may be generated here.

Install

Add the package to your composer.json and run composer update:

"require": {
    "io-digital/laravel-sendgrid-driver": "^1.0"
},

Alternatively, install directly with composer:

$ composer require io-digital/laravel-sendgrid-driver

Remove the default service provider and add the sendgrid service provider in app/config/app.php:

'providers' => [
    // Illuminate\Mail\MailServiceProvider::class,
    IoDigital\SendGridDriver\MailServiceProvider::class,
];

Configure

Edit your .env file to include the following:

MAIL_DRIVER=sendgrid
SENDGRID_API_KEY='YOUR_SENDGRID_API_KEY'

And finally, edit your config/service.php file to include the following:

'sendgrid' => [
    'api_key' => env('SENDGRID_API_KEY')
]

About

SendGrid driver for Laravel's mail configuration

Topics

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published

Languages