e-mail

Sending e-mail with email node - using Gmail as an example

1. turns on the switch in below link:

https://myaccount.google.com/lesssecureapps?pli=1

2. email node setting:

  • To: receiver's e-mail address

  • Server: smtp.gmail.com

  • port: 465

  • check "Use secure connection"

  • Userid: <UserID of gmail>

  • Password: <User Password of gmail>

You can copy the text below and import it to Node-RED for an e-mail sending example:

[{"id":"b36a48a9.8642b8","type":"inject","z":"40cb2345.90320c","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":151,"y":189,"wires":[["bac94df0.aa10f"]]},{"id":"bac94df0.aa10f","type":"function","z":"40cb2345.90320c","name":"","func":"msg.topic = \"this is a mail from node-red\"\nmsg.payload =\"happy new year!!\"\nreturn msg;","outputs":1,"noerr":0,"x":343,"y":220,"wires":[["a0d511d7.798c2"]]},{"id":"a0d511d7.798c2","type":"e-mail","z":"40cb2345.90320c","server":"smtp.gmail.com","port":"465","secure":true,"name":"","dname":"","x":531,"y":263,"wires":[]}]

Last updated

Was this helpful?