From fc9b01641858ff6c6ae278c9e6410af7d8863753 Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Thu, 13 Jan 2022 13:05:48 +0100 Subject: [PATCH 1/2] wrap attachment --- src/Service/MailgunService.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Service/MailgunService.php b/src/Service/MailgunService.php index d902d2f..47f7020 100644 --- a/src/Service/MailgunService.php +++ b/src/Service/MailgunService.php @@ -140,7 +140,9 @@ public function send(Message $message): string $attachments = $this->extractAttachments($message); foreach ($attachments as $attachment) { - $parameters['attachment'][] = $attachment->filename; + $parameters['attachment'][] = [ + 'filename' => $attachment->filename + ] } if ($message instanceof MailgunMessage) { From fb46254f12586c76561a0d8ff1a22dc4a9f2efb7 Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Thu, 13 Jan 2022 13:24:59 +0100 Subject: [PATCH 2/2] missing semicolon --- src/Service/MailgunService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Service/MailgunService.php b/src/Service/MailgunService.php index 47f7020..041ad32 100644 --- a/src/Service/MailgunService.php +++ b/src/Service/MailgunService.php @@ -142,7 +142,7 @@ public function send(Message $message): string foreach ($attachments as $attachment) { $parameters['attachment'][] = [ 'filename' => $attachment->filename - ] + ]; } if ($message instanceof MailgunMessage) {