From 60384ccc05068d1f59f92d1c2fa8b926fa1e915f Mon Sep 17 00:00:00 2001 From: Stephen Cameron Date: Thu, 29 Apr 2021 16:26:07 +0200 Subject: [PATCH] Replace OVH SMTP with SendGrid API. Wait #4244 @4.5 --- composer.json | 1 + composer.lock | 65 ++++++++++++++++++++++++++++++++++++++++++++- config/mail.php | 4 +++ config/services.php | 4 +++ 4 files changed, 73 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 84be65e..e89501d 100644 --- a/composer.json +++ b/composer.json @@ -15,6 +15,7 @@ "guzzlehttp/guzzle": "^7.0.1", "laravel/framework": "^8.12", "laravel/tinker": "^2.5", + "s-ichikawa/laravel-sendgrid-driver": "^3.0", "webup/laravel-sendinblue": "^3.1" }, "require-dev": { diff --git a/composer.lock b/composer.lock index 862c0fd..fe390cb 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "9c0427e00eb0e11ceb1f27444db61ec9", + "content-hash": "cfcf132422c708a0a55cad4a8f5fb4d2", "packages": [ { "name": "asm89/stack-cors", @@ -2380,6 +2380,69 @@ ], "time": "2020-08-18T17:17:46+00:00" }, + { + "name": "s-ichikawa/laravel-sendgrid-driver", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/s-ichikawa/laravel-sendgrid-driver.git", + "reference": "d054933d4b4e089e6ee8cfe2107b98b39d80faec" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/s-ichikawa/laravel-sendgrid-driver/zipball/d054933d4b4e089e6ee8cfe2107b98b39d80faec", + "reference": "d054933d4b4e089e6ee8cfe2107b98b39d80faec", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^6.3 || ^7.0", + "illuminate/mail": ">=7.0", + "illuminate/support": ">=7.0" + }, + "require-dev": { + "illuminate/container": ">=7.0", + "illuminate/filesystem": ">=7.0", + "laravel/helpers": "^1.2", + "phpunit/phpunit": "^8.5", + "vlucas/phpdotenv": "^4.1" + }, + "suggest": { + "s-ichikawa/sendgrid-api-builder": "support to build json for sendgrid api" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Sichikawa\\LaravelSendgridDriver\\SendgridTransportServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "Sichikawa\\LaravelSendgridDriver\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "shingo.ichikawa", + "email": "ichikawa.shingo.0829@gmail.com" + } + ], + "description": "This library adds a 'sendgrid' mail driver to Laravel.", + "keywords": [ + "laravel", + "sendgrid" + ], + "support": { + "issues": "https://github.com/s-ichikawa/laravel-sendgrid-driver/issues", + "source": "https://github.com/s-ichikawa/laravel-sendgrid-driver/tree/3.0.3" + }, + "time": "2021-01-06T01:39:59+00:00" + }, { "name": "sendinblue/api-v3-sdk", "version": "v7.4.0", diff --git a/config/mail.php b/config/mail.php index a10809a..416eb51 100644 --- a/config/mail.php +++ b/config/mail.php @@ -35,6 +35,10 @@ return [ 'mailers' => [ + 'sendgrid' => [ + 'transport' => 'sendgrid', + ], + 'sendinblue' => [ 'transport' => 'sendinblue', ], diff --git a/config/services.php b/config/services.php index e0ed5e1..a7fb406 100644 --- a/config/services.php +++ b/config/services.php @@ -14,6 +14,10 @@ return [ | */ + 'sendgrid' => [ + 'api_key' => env('SENDGRID_API_KEY'), + ], + 'sendinblue' => [ 'key_identifier' => env('SENDINBLUE_KEY_IDENTIFIER', 'api-key'), // api-key or partner-key 'key' => env('SENDINBLUE_KEY'), -- 2.39.5