From 4742b360a00f7ae58075bc9c1f4488c34438c18e Mon Sep 17 00:00:00 2001 From: loviuz Date: Thu, 3 Jun 2021 10:49:39 +0200 Subject: [PATCH] Fix nomi allegati secondari in invio mail --- src/Notifications/EmailNotification.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifications/EmailNotification.php b/src/Notifications/EmailNotification.php index c0e01e55d..3415607b2 100755 --- a/src/Notifications/EmailNotification.php +++ b/src/Notifications/EmailNotification.php @@ -229,7 +229,7 @@ class EmailNotification extends PHPMailer implements NotificationInterface { $attachment = database()->fetchOne('SELECT * FROM zz_files WHERE id = '.prepare($file_id)); - $this->addAttachment(base_dir().'/'.Uploads::getDirectory($attachment['id_module'], $attachment['id_plugin']).'/'.$attachment['filename']); + $this->addAttachment(base_dir().'/'.Uploads::getDirectory($attachment['id_module'], $attachment['id_plugin']).'/'.$attachment['filename'], $attachment['original']); } /**