# Sending mail using a boolean input

**URL:** https://discourse.nodered.org/t/sending-mail-using-a-boolean-input/72661
**Category:** General
**Created:** [24 December 2022 15:47 UTC](https://discourse.nodered.org/t/sending-mail-using-a-boolean-input/72661 "2022-12-24T15:47:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![emil\_m](https://avatars.discourse-cdn.com/v4/letter/e/48db29/32.png) [@emil\_m](https://discourse.nodered.org/u/emil_m)
#### Post date: [24 December 2022 15:47 UTC](https://discourse.nodered.org/t/sending-mail-using-a-boolean-input/72661/1 "2022-12-24T15:47:43Z")

</div>

Hello. I have a small problem: I am reading data from an Omron NX1P2 CPU through MQTT and what I want is after separating the variables to send mail every X time or if I want, through a boolean in the HMI. and I also have a problem with the email construction function. In the Data Select function I have the variables, but when I put the variable that it touches in the mail construction function, it does not read it to me. I attach here the screenshots with the configuration of each function and also a screenshot with what I want to do. Thank you.

 ![captura 4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b59577ed972717af07433c82c1b561df25ca1dc1.png)  
 ![captura 5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/deeeed1ece19646c8d857c45ee8e454c13568b3f.png)  
 ![captura6](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/a/5a955c6a86562b1e8e3481ddb5c970c9621cce0d.png)  
 ![captura7](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51840ee040fc197df1c93de5bce5f1f9d1abe458.png)

---

<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: [22 February 2023 15:47 UTC](https://discourse.nodered.org/t/sending-mail-using-a-boolean-input/72661/2 "2023-02-22T15:47:45Z")

</div>

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