# Inject node with input

**URL:** <https://discourse.nodered.org/t/inject-node-with-input/22662>\
**Category:** General\
**Created:** [5 March 2020 14:36 UTC](https://discourse.nodered.org/t/inject-node-with-input/22662 "2020-03-05T14:36:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tukru](https://avatars.discourse-cdn.com/v4/letter/t/f0a364/32.png) [@tukru](https://discourse.nodered.org/u/tukru)\
**Post date:** [5 March 2020 14:36 UTC](https://discourse.nodered.org/t/inject-node-with-input/22662/1 "2020-03-05T14:36:59Z")

</div>

Hi all,  
I need to send a mail every X hours. I was thinking to make it using the inject node that comes by default with node-red. The problem is I have to pass the number of hours to the inject node because it could be different.

How could I do it?

---

<div class="post-metadata">

**Author:** ![unixneo](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/unixneo/32/17441_2.png) [@unixneo](https://discourse.nodered.org/u/unixneo)\
**Post date:** [5 March 2020 15:32 UTC](https://discourse.nodered.org/t/inject-node-with-input/22662/2 "2020-03-05T15:32:45Z")

</div>

Personally, I would write a simple Javascript function for that easy task and be done with it .... 🙂

However, if you prefer a third-party node, have you looked at?

`node-red-contrib-cron-plus`

> **[node-red-contrib-cron-plus](https://flows.nodered.org/node/node-red-contrib-cron-plus)**
>
> A flexible scheduler node for Node-RED (incl dynamic control and Timezone support)

---

<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:** [4 May 2020 15:32 UTC](https://discourse.nodered.org/t/inject-node-with-input/22662/3 "2020-05-04T15:32:53Z")

</div>

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