Update 'src/MailTemplate.php'

This commit is contained in:
2023-01-14 19:09:54 +01:00
parent e55b5192fd
commit b5e447ed15

View File

@@ -160,7 +160,7 @@ class MailTemplate implements \JsonSerializable
public function attachments(array $attachments): MailTemplate
{
foreach ($attachments as $attachment) {
$this->addAttachment($attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
$this->addAttachment($attachment['url'] ?? $attachment['path'] ?? $attachment['file'], $attachment['filename'] ?? null);
}
return $this;