EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
attachment file name fix
Yuri Kuznetsov33a15bdbd6c1
diff --git a/application/Espo/Core/Mail/Sender.php b/application/Espo/Core/Mail/Sender.phpindex 5829531abc..9329494490 100644--- a/application/Espo/Core/Mail/Sender.php+++ b/application/Espo/Core/Mail/Sender.php@@ -355,7 +355,7 @@ class Sender$part = new DataPart(body: $contents,- filename: $this->prepareAttachmentFileName($attachment),+ filename: $attachment->getName() ?? '',contentType: $attachment->getType(),);@@ -470,15 +470,6 @@ class Sender}}--- private function prepareAttachmentFileName(mixed $attachment): string- {- $namePart = base64_encode($attachment->getName() ?? '');-- return "=?utf-8?B?$namePart?=";- }-/*** @param array<string, mixed> $params* @throws NoSmtp