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']); } /**