Modifying addAttachment()

This commit is contained in:
Loann 2020-06-09 12:30:46 +02:00
parent 169e532434
commit 871d55f8d7
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ class BluescaleMailTemplate implements \JsonSerializable
$file = is_object($file) && method_exists($file, 'getRealPath') ? $file->getRealPath() : $file; $file = is_object($file) && method_exists($file, 'getRealPath') ? $file->getRealPath() : $file;
$this->attachments[] = [ $this->attachments[] = [
'file' => $file, 'path' => $file,
'filename' => $filename ?? basename($file) 'filename' => $filename ?? basename($file)
]; ];
} }