feature/add-attachments #2
|
@ -149,7 +149,10 @@ class BluescaleMailTemplate implements \JsonSerializable
|
|||
*/
|
||||
public function attachments(array $attachments): BluescaleMailTemplate
|
||||
{
|
||||
$this->attachments = $attachments;
|
||||
foreach ($attachments as $attachment) {
|
||||
$this->addAttachment($attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue