You've already forked laravel-mail-templates
Update 'src/Providers/SendinblueProvider.php'
This commit is contained in:
@@ -69,8 +69,15 @@ class SendinblueProvider implements TemplateMailProvider
|
||||
if (! empty($data['attachments'])) {
|
||||
$model->setAttachment(array_map(function ($item) {
|
||||
$attachment = new SendSmtpEmailAttachment();
|
||||
$attachment->setName($item['filename']);
|
||||
$attachment->setContent(file_get_contents($item['path']));
|
||||
|
||||
if (isset($item['filename']))
|
||||
$attachment->setName($item['filename']);
|
||||
|
||||
if (strpos($item['path'], 'http') === 0)
|
||||
$attachment->setUrl($item['path']);
|
||||
else
|
||||
$attachment->setContent(file_get_contents($item['path']));
|
||||
|
||||
return $attachment;
|
||||
}, $data['attachments']));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user