feature/add-attachments #2

Manually merged
Thifaine merged 12 commits from feature/add-attachments into master 2020-06-09 16:20:07 +02:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 4bad426149 - Show all commits

View File

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