> For the complete documentation index, see [llms.txt](https://axiomtek-ams.gitbook.io/ams/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://axiomtek-ams.gitbook.io/ams/data-processing/native-nodes/e-mail.md).

# e-mail

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

![](https://2909878411-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc00kv6JMggJXSZbUet%2F-LvyL-qY2WQv4DWLDbhj%2F-LvyMXu02hBHyuAR_y6I%2Fimage.png?alt=media\&token=5ec87bf3-cfbb-48ea-9542-367e3a16ec18)

1\. turns on the switch in below link:

[`https://myaccount.google.com/lesssecureapps?pli=1`](https://myaccount.google.com/lesssecureapps?pli=1) &#x20;

2\. email node setting:

* To: receiver's e-mail address
* Server: smtp.gmail.com&#x20;
* 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 =\"ｈａｐｐｙ　ｎｅｗ　ｙｅａｒ！！\"\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":[]}]
```
