# Sending an email through Node-RED

**URL:** <https://discourse.nodered.org/t/sending-an-email-through-node-red/77958>\
**Category:** General\
**Created:** [26 April 2023 14:02 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958 "2023-04-26T14:02:30Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shyama\_Gupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shyama_gupta/32/92564_2.png) [@Shyama\_Gupta](https://discourse.nodered.org/u/Shyama_Gupta)\
**Post date:** [26 April 2023 14:02 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/1 "2023-04-26T14:02:30Z")

</div>

How can I send an email on outlook through Node-RED where the email consists of data of the function node?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 April 2023 19:42 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/2 "2023-04-26T19:42:26Z")

</div>

Have you searched for email nodes?

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://discourse.nodered.org/u/awneil)\
**Post date:** [27 April 2023 07:52 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/3 "2023-04-27T07:52:37Z")

</div>

Not quite sure what you mean by, _"send an email on outlook through Node-RED"_ ?

Do you mean

- send an email from Outlook, and have it received by Node-RED?
- have Node-RED send an email, and have it received by Outlook?
- have Node-RED trigger Outlook to send an email?
- other ??

As @TotallyInformation said, have you checked out the available email nodes; eg,

> **[node-red-node-email](https://flows.nodered.org/node/node-red-node-email)**
>
> Node-RED nodes to send and receive simple emails.

---

<div class="post-metadata">

**Author:** ![ChZeman](https://avatars.discourse-cdn.com/v4/letter/c/76d3ee/32.png) [@ChZeman](https://discourse.nodered.org/u/ChZeman)\
**Post date:** [27 April 2023 10:01 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/4 "2023-04-27T10:01:42Z")

</div>

As @awneil said, you need to clarify what you're asking. I'm going to add another possibility of what you mean to the list he provided. Are you referring to sending an email through the Office 365 platform? If so, you need to use STMP with the node-red-node-email @TotallyInformation referred you to. I have a personal O365 account and two additional professional accounts (through the radio station I run and at my full-time job).

I bring that up because IMAP and SMTP are enabled for my personal and radio station accounts but my employer has everything outside Exchange functionality disabled and you may run into that.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [27 April 2023 10:05 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/5 "2023-04-27T10:05:02Z")

</div>

And because it maybe relevant if using O365, you _may_ need to use OAuth.  
it was discussed the other day - so still fresh in my mind

> [@Email Node and OAuth with M365](https://discourse.nodered.org/t/email-node-and-oauth-with-m365/77903/2):
>
> Hi @ebnerjoh On the basis you have followed this guide (specifically for Office 365 users) [node-red-node-email (node) - Node-RED (nodered.org)](https://flows.nodered.org/node/node-red-node-email) You can then use an OAuth2 node such as [node-red-contrib-oauth2 (node) - Node-RED (nodered.org)](https://flows.nodered.org/node/node-red-contrib-oauth2) This will return your token, and you pass said token into the email fetch node. The email fetch node will use the path as specified below when sending your msg to the email fetch node, so the node knows where your access token is, in your msg. [image] S…

---

<div class="post-metadata">

**Author:** ![Shyama\_Gupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shyama_gupta/32/92564_2.png) [@Shyama\_Gupta](https://discourse.nodered.org/u/Shyama_Gupta)\
**Post date:** [12 June 2023 12:57 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/6 "2023-06-12T12:57:31Z")

</div>

Yes I had tried but didn't worked out due to security reasons but thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![Shyama\_Gupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shyama_gupta/32/92564_2.png) [@Shyama\_Gupta](https://discourse.nodered.org/u/Shyama_Gupta)\
**Post date:** [12 June 2023 12:59 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/7 "2023-06-12T12:59:27Z")

</div>

I wanted to send an email which consists data and a format into it from Node-RED to the outlook mail and I tried using Zapier and it worked out. Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![Shyama\_Gupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shyama_gupta/32/92564_2.png) [@Shyama\_Gupta](https://discourse.nodered.org/u/Shyama_Gupta)\
**Post date:** [12 June 2023 13:00 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/8 "2023-06-12T13:00:15Z")

</div>

Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![Shyama\_Gupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shyama_gupta/32/92564_2.png) [@Shyama\_Gupta](https://discourse.nodered.org/u/Shyama_Gupta)\
**Post date:** [12 June 2023 13:02 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/9 "2023-06-12T13:02:02Z")

</div>

Thanks for your help and I had tried using Zapier app and it worked out because I had some security issues due to which emails node were not able to send to the outlook so I used Zapier app and http node. 🙂

---

<div class="post-metadata">

**Author:** ![Shyama\_Gupta](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/shyama_gupta/32/92564_2.png) [@Shyama\_Gupta](https://discourse.nodered.org/u/Shyama_Gupta)\
**Post date:** [12 June 2023 13:08 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/10 "2023-06-12T13:08:39Z")

</div>

Thank You all for the help and guidance.  
My query has been resolved as I used Zapier app connecting with the http node and providing it's webhook url instead of email node because it was throwing some security issues.  
Thanks alot for your answers. 🙂

---

<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:** [11 August 2023 13:09 UTC](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958/11 "2023-08-11T13:09:01Z")

</div>

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