Skip to content

Commit

Permalink
Merge pull request #151 from basz/fix-mailgun-attachments
Browse files Browse the repository at this point in the history
Correct send attachment
  • Loading branch information
roelvanduijnhoven authored Jan 13, 2022
2 parents 978cc5f + fb46254 commit 3b9b81c
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 3b9b81c

Please sign in to comment.