diff --git a/src/BluescaleMailTemplate.php b/src/BluescaleMailTemplate.php index 07b3258..506b93f 100644 --- a/src/BluescaleMailTemplate.php +++ b/src/BluescaleMailTemplate.php @@ -158,7 +158,7 @@ class BluescaleMailTemplate implements \JsonSerializable $file = is_object($file) && method_exists($file, 'getRealPath') ? $file->getRealPath() : $file; $this->attachments[] = [ - 'file' => $file, + 'path' => $file, 'filename' => $filename ?? basename($file) ]; }