Modifications
This commit is contained in:
parent
871d55f8d7
commit
7a98f99840
|
@ -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