# Revert module to older version: node-red-node-email

**URL:** <https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654>\
**Category:** General\
**Created:** [24 January 2021 16:15 UTC](https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654 "2021-01-24T16:15:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashfaak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ashfaak/32/34409_2.png) [@Ashfaak](https://discourse.nodered.org/u/Ashfaak)\
**Post date:** [24 January 2021 16:15 UTC](https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654/1 "2021-01-24T16:15:41Z")

</div>

Is it possible to revert a node module to an older version? I've installed node-RED using the recommended script. Updated node-red-node-email to 1.8.3 today and my attachments are no longer working as they were with the previous version.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [24 January 2021 16:17 UTC](https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654/2 "2021-01-24T16:17:18Z")

</div>

Hi @Ashfaak

from the command-line, you can run `npm install node-red-node-email@<version>` when you are in the `~/.node-red` directory and replacing `<version>` with the version of the module you want to install.

Have you reported the issue anywhere so it can be investigated?

---

<div class="post-metadata">

**Author:** ![Ashfaak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ashfaak/32/34409_2.png) [@Ashfaak](https://discourse.nodered.org/u/Ashfaak)\
**Post date:** [24 January 2021 16:37 UTC](https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654/3 "2021-01-24T16:37:18Z")

</div>

Hi @knolleary

Thanks for the swift reply. I actually tried that, but in the wrong folder 🙈  
Then I tried it again in the correct folder but did not restart NR. 🤦‍♂️

I was about to add an issue on Github but it says to mention the issue here or on Slack first. The way this query is formed probably doesn't help much - I will add more info here:

Refer to this commit: [https://github.com/node-red/node-red-nodes/commit/14983c9722743369c11305cb79fdd1d96dd70ea6](https://github.com/node-red/node-red-nodes/commit/14983c9722743369c11305cb79fdd1d96dd70ea6)

My `msg.attachments` is formed like this in Jsonata: `{ "href":"https://drive.google.com/uc?export=download&id=" &req.params.fileid, "filename" : payload.filename	}`

It is not array so it fails to become `sendopts.attachments`.

---

<div class="post-metadata">

**Author:** ![Ashfaak](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ashfaak/32/34409_2.png) [@Ashfaak](https://discourse.nodered.org/u/Ashfaak)\
**Post date:** [24 January 2021 18:17 UTC](https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654/4 "2021-01-24T18:17:24Z")

</div>

Attachments work again by setting `msg.attachments` to an array.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [7 February 2021 18:17 UTC](https://discourse.nodered.org/t/revert-module-to-older-version-node-red-node-email/39654/5 "2021-02-07T18:17:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
