Modifications

This commit is contained in:
Loann 2020-06-09 13:09:13 +02:00
parent 871d55f8d7
commit 7a98f99840
1 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,10 @@ class BluescaleMailTemplate implements \JsonSerializable
*/ */
public function attachments(array $attachments): BluescaleMailTemplate public function attachments(array $attachments): BluescaleMailTemplate
{ {
$this->attachments = $attachments; foreach ($attachments as $attachment) {
$this->addAttachment($attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
}
return $this; return $this;
} }