# Dynamic Configuration of Email Credentials in Node-RED

**URL:** <https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565>\
**Category:** General\
**Created:** [13 January 2025 08:26 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565 "2025-01-13T08:26:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://discourse.nodered.org/u/Paul)\
**Post date:** [13 January 2025 08:26 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565/1 "2025-01-13T08:26:15Z")

</div>

Hello,

I am currently working on a project using Node-RED, where the goal is to send emails based on certain alarms. So far, everything is working fine. However, I would like to know if it is possible to populate the _password_, _server_, and _user ID_ fields dynamically from `msg.payload`.

From the documentation, this does not seem to be mentioned, so I assume it might not be possible. Could you help me confirm this or suggest a solution?

Thank you in advance for your assistance, and have a great day.

Best regards,  
Lagache Paul-Henri

---

<div class="post-metadata">

**Author:** ![GogoVega](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gogovega/32/71313_2.png) [@GogoVega](https://discourse.nodered.org/u/GogoVega)\
**Post date:** [13 January 2025 09:50 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565/2 "2025-01-13T09:50:38Z")

</div>

Hi, can you tell us the node you are using.

---

<div class="post-metadata">

**Author:** ![Paul](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Paul](https://discourse.nodered.org/u/Paul)\
**Post date:** [14 January 2025 08:07 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565/3 "2025-01-14T08:07:00Z")

</div>

Hello, the node I'm using is the `node-red-node-email` version 3.0.2, specifically the "e-mail" node.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/0/f0d2672b1f4a5c014adad71f0dddf39680f669c6.png)

---

<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:** [14 January 2025 16:08 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565/4 "2025-01-14T16:08:25Z")

</div>

It is not possible to dynamically set the configuration for that node. I don't know if there is another email node that will allow that.

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [14 January 2025 16:32 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565/5 "2025-01-14T16:32:28Z")

</div>

Take a look at this node [node-red-node-email-variable (node) - Node-RED](https://flows.nodered.org/node/node-red-node-email-variable)

---

<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:** [14 April 2025 16:33 UTC](https://discourse.nodered.org/t/dynamic-configuration-of-email-credentials-in-node-red/94565/6 "2025-04-14T16:33:07Z")

</div>

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