Skip to content
Snippets Groups Projects
Commit d6ca8d24 authored by Pablo López's avatar Pablo López
Browse files

Issue #3391810: Attachment integration for MimeMail module style does not work

parent d0678e39
No related branches found
No related tags found
2 merge requests!30Issue #2971991 by amykhailova, code-drupal: "Cc" Recipient not receiving email...,!27Issue #3391810: Attachment integration for MimeMail module style does not work
......@@ -517,9 +517,9 @@ class SendGridMail implements MailInterface, ContainerFactoryPluginInterface {
if (isset($message['params']['attachments']) && !empty($message['params']['attachments'])) {
foreach ($message['params']['attachments'] as $attachment) {
$attach = new Attachment();
if (isset($attachment['uri'])) {
if (isset($attachment['filepath'])) {
$attachment_path = \Drupal::service('file_system')
->realpath($attachment['uri']);
->realpath($attachment['filepath']);
if (is_file($attachment_path)) {
try {
$struct = $this->getAttachmentStruct($attachment_path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment