Skip to content

Commit

Permalink
[FEATURE] Also attach embedded images if attacheEmbeddedImages config…
Browse files Browse the repository at this point in the history
… is set to true
  • Loading branch information
bweinzierl committed Jul 12, 2022
1 parent 7b9806c commit 7674d00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Service/AbstractMailerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ public function attachHtmlInlineImage($match) {
}
}

if ($this->mailSettings['attachEmbeddedImages']) {
$this->processedMessage->attach(\Swift_Attachment::fromPath(urldecode($path)));
}

return $imgTagStart.$this->processedMessage->embed(\Swift_Image::fromPath(urldecode($path))).'"'.$imgTagEnd;
}

Expand Down
1 change: 1 addition & 0 deletions Configuration/Settings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
FormatD:
Mailer:
localEmbed: false
attachEmbeddedImages: false
interceptAll:
active: false
recipients: []
Expand Down

0 comments on commit 7674d00

Please sign in to comment.