Skip to content

Commit

Permalink
wrap attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
basz committed Jan 13, 2022
1 parent 978cc5f commit fc9b016
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Service/MailgunService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc9b016

Please sign in to comment.