Skip to content

Commit

Permalink
Fix file attachement to recipient message
Browse files Browse the repository at this point in the history
  • Loading branch information
Franck Allimant committed Jul 17, 2024
1 parent f885a05 commit ebbf475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Config/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<language>en_US</language>
<language>fr_FR</language>
</languages>
<version>1.0.12</version>
<version>1.0.13</version>
<authors>
<author>
<name>Thomas Da Silva Mendonca</name>
Expand Down
2 changes: 1 addition & 1 deletion EventListener/CustomContactEventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ protected function sendEmail(string $email, string $title, CustomContactEvent $e
foreach ($event->getFileFields() as $fileField) {
/** @var UploadedFile $file */
foreach ($fileField as $file) {
$email->attach($file->getContent(), $file->getClientOriginalName());
$emailService->attach($file->getContent(), $file->getClientOriginalName());
}
}

Expand Down

0 comments on commit ebbf475

Please sign in to comment.