feature/add-attachments #2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue