mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-08 08:49:52 +00:00
Fix email attachment handling in address import reports
Updated attachment logic to use in-memory file contents and apply a `.gz` suffix to filenames. This ensures better file handling and resolves potential issues with attaching files directly from a path.
This commit is contained in:
parent
b4a1e824ac
commit
6de4861b98
@ -311,7 +311,7 @@ final class AddressReferenceBaseImporter
|
|||||||
$email = (new Email())
|
$email = (new Email())
|
||||||
->addTo($sendAddressReportToEmail)
|
->addTo($sendAddressReportToEmail)
|
||||||
->subject('Addresses that could not be imported')
|
->subject('Addresses that could not be imported')
|
||||||
->attachFromPath($attachmentPath);
|
->attach(file_get_contents($attachmentPath), sprintf('%s.gz', $path));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$this->mailer->send($email);
|
$this->mailer->send($email);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user