# 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:** 1
**Showing post:** 5

<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…

---

_[View the full topic](https://discourse.nodered.org/t/sending-an-email-through-node-red/77958)._
