From 0c1e6d04606fe66758aa43159c62b98a430d2ad8 Mon Sep 17 00:00:00 2001 From: Andrii Chyrskyi Date: Mon, 19 Jun 2023 15:21:47 +0300 Subject: [PATCH] Add $query parameter for the send API request method to be able to set additional settings like 'css_inline' --- lib/BaseSendGridClientInterface.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/BaseSendGridClientInterface.php b/lib/BaseSendGridClientInterface.php index 91d244a2..636a1542 100644 --- a/lib/BaseSendGridClientInterface.php +++ b/lib/BaseSendGridClientInterface.php @@ -55,11 +55,13 @@ public function __construct($auth, $host, $options = array()) * Make an API request. * * @param Mail $email A Mail object, containing the request object + * @param array|null $query A query, containing additional settings, + * e.g., css_inline * * @return Response */ - public function send(Mail $email) + public function send(Mail $email, array $query = null) { - return $this->client->mail()->send()->post($email); + return $this->client->mail()->send()->post($email, $query); } }