This commit is contained in:
Loann 2020-06-08 12:48:24 +02:00
parent a9967a29cd
commit 5646228546
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class BluescaleMailApi
if (count($attachments) > 0) {
$formatted_attachmments = [];
foreach ($attachments as $attachment) {
$file = new UploadedFile($attachment['path'], $attachment['filename'], 'application/octet-stream', null, null, false);
$formatted_attachmments[] = $file;
// $file = new UploadedFile($attachment['path'], $attachment['filename'], 'application/octet-stream', null, null, false);
$formatted_attachmments[] = $attachment;
}
$template->attachments = $formatted_attachmments;