From 20129a0117b3b2588800d5cd2869c472a832e038 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Pavlovi=C4=87?= Date: Fri, 2 Sep 2022 15:46:34 +0200 Subject: [PATCH] MailerQ: smarthost moved to the root of JSON instead under 'mime' key --- .gitignore | 3 ++- src/Message/MailerQ/Rest/MessageFacade.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 18ba65e..a9a8d5f 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,5 @@ vendor .project .settings -.idea \ No newline at end of file +.idea +composer.lock \ No newline at end of file diff --git a/src/Message/MailerQ/Rest/MessageFacade.php b/src/Message/MailerQ/Rest/MessageFacade.php index 4de3316..5965901 100644 --- a/src/Message/MailerQ/Rest/MessageFacade.php +++ b/src/Message/MailerQ/Rest/MessageFacade.php @@ -53,7 +53,7 @@ public static function convert(\G4\Mailer\Message $message, array $options) ]; if (isset($options[self::PARAMS][self::SMARTHOST])) { - $body[self::MIME][self::SMARTHOST] = $options[self::PARAMS][self::SMARTHOST]; + $body[self::SMARTHOST] = $options[self::PARAMS][self::SMARTHOST]; } if ($message->getLogId()) { @@ -95,4 +95,4 @@ private static function getTags($headers) throw new \RuntimeException(sprintf('Tags are not resolved. Reason: %s', $exception->getMessage())); } } -} \ No newline at end of file +}