From 47050adb577e75d367d7260492e05b0623ee27ef Mon Sep 17 00:00:00 2001 From: David Bomba Date: Sun, 25 Apr 2021 00:37:54 +1000 Subject: [PATCH] Fixes for initializaing PostMark --- app/Providers/MailServiceProvider.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Providers/MailServiceProvider.php b/app/Providers/MailServiceProvider.php index 3a3f16eac7..7642fe4765 100644 --- a/app/Providers/MailServiceProvider.php +++ b/app/Providers/MailServiceProvider.php @@ -36,10 +36,11 @@ class MailServiceProvider extends MailProvider }); $this->app['mail.manager']->extend('postmark', function () { - return new PostmarkTransport( - $this->guzzle(config('postmark.guzzle', [])), - config('postmark.secret') - ); + return new HttpClient(array_merge($config, [ + 'base_uri' => empty($config['base_uri']) + ? 'https://api.postmarkapp.com' + : $config['base_uri'] + ])); }); } @@ -56,4 +57,3 @@ class MailServiceProvider extends MailProvider 'mailer' ]; } } -