Modifying addAttachment()
This commit is contained in:
parent
169e532434
commit
871d55f8d7
|
@ -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)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue