# Copy/paste email node loses credentials

**URL:** <https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426>\
**Category:** General\
**Created:** [21 March 2020 17:51 UTC](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426 "2020-03-21T17:51:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 March 2020 17:51 UTC](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426/1 "2020-03-21T17:51:08Z")

</div>

I find that if I copy/paste an email node (even into the same flow) then the user and pwd fields are emptied. Is that by design? I can't see an open Issue about it.

node red 1.0.4, nodejs 12.16.1

---

<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:** [21 March 2020 18:50 UTC](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426/2 "2020-03-21T18:50:16Z")

</div>

Credentials never get copied with nodes. That applies to copy/paste and export. Always been that way.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [21 March 2020 21:34 UTC](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426/3 "2020-03-21T21:34:05Z")

</div>

OK, thanks, I think the reason I hadn't noticed is that the vast majority of the nodes I use that need credentials are MQTT nodes, and since the credentials are in the config node then one can happily copy/paste MQTT In/Out nodes and the credentials appear to follow (even though actually they are not).

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [20 May 2020 21:37 UTC](https://discourse.nodered.org/t/copy-paste-email-node-loses-credentials/23426/4 "2020-05-20T21:37:35Z")

</div>

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