# Email node configuration by input message

**URL:** <https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670>\
**Category:** General\
**Created:** [25 June 2021 15:32 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670 "2021-06-25T15:32:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/swen/32/43902_2.png) [@Swen](https://discourse.nodered.org/u/Swen)\
**Post date:** [25 June 2021 15:32 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670/1 "2021-06-25T15:32:36Z")

</div>

Hi and "moin moin" to everybody.

This is my first entry in this user forum.  
I seriously played around wih node-red for a few months now.

I developed several flows with an email sending node from the "node-red-node-email" packages Version "1.12.1".  
For general purpose i want to configure the Server, Authorization and port information for my SMTP-Server NOT within every single email-node.

Is there a way to pass those configuration values by message-in like topic, content , receiver and other variables in real-time?  
Actually I want to store these settings in global context to reuse them everywhere.

Help is very much appreciated!  
Thank you in advance.

Swen

---

<div class="post-metadata">

**Author:** ![rakgupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/rakgupta/32/42535_2.png) [@rakgupta](https://discourse.nodered.org/u/rakgupta)\
**Post date:** [26 June 2021 12:00 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670/2 "2021-06-26T12:00:15Z")

</div>

> [@Swen](#):
>
> For general purpose i want to configure the Server, Authorization and port information for my SMTP-Server NOT within every single email-node.

I created a sub-flow with just the email node and the configuration and use the sub-flow instead of configuring the the email node every time. As far as I know, you cannot pass the configuration parameters into the node.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [26 June 2021 13:42 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670/3 "2021-06-26T13:42:57Z")

</div>

You can use environment variables like [Using environment variables : Node-RED](https://nodered.org/docs/user-guide/environment-variables) - but these are read once at deploy time - so are ok on a case by case basis - ie can be configured once externally - but are not fully dynamic.

---

<div class="post-metadata">

**Author:** ![Swen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/swen/32/43902_2.png) [@Swen](https://discourse.nodered.org/u/Swen)\
**Post date:** [28 June 2021 06:47 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670/4 "2021-06-28T06:47:47Z")

</div>

thank you!  
simple and effective idea!  
good things are nearer than expected.  
Cheers  
Swen

---

<div class="post-metadata">

**Author:** ![Swen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/swen/32/43902_2.png) [@Swen](https://discourse.nodered.org/u/Swen)\
**Post date:** [28 June 2021 06:49 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670/5 "2021-06-28T06:49:04Z")

</div>

Thanks!  
I took that in consideration already, but I wanted to avoid an "external" configuration setup.  
Cheers  
Swen

---

<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:** [27 August 2021 06:49 UTC](https://discourse.nodered.org/t/email-node-configuration-by-input-message/47670/6 "2021-08-27T06:49:05Z")

</div>

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