# Sending HTML Email

**URL:** <https://discourse.nodered.org/t/sending-html-email/1084>\
**Category:** General\
**Created:** [26 June 2018 00:46 UTC](https://discourse.nodered.org/t/sending-html-email/1084 "2018-06-26T00:46:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dskilton](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@dskilton](https://discourse.nodered.org/u/dskilton)\
**Post date:** [26 June 2018 00:46 UTC](https://discourse.nodered.org/t/sending-html-email/1084/1 "2018-06-26T00:46:43Z")

</div>

I would like to use the node-red-contrib-email-out node, or something similar, to send an HTML email that contains an image in the body of the email based on a triggered event.

I have read the documentation on how to send plain text, but I cant find and code samples or documentation on how to send an HTML email.

Can anybody point me in the right direction, or have I poorly selected the node for the task?

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [17 November 2023 04:18 UTC](https://discourse.nodered.org/t/sending-html-email/1084/2 "2023-11-17T04:18:23Z")

</div>

Were you able to get this done? I am also looking for similar feature, and a forum search led me here, unfortunately no solution / hints available in my search..

anyone have a solution ?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [17 November 2023 05:54 UTC](https://discourse.nodered.org/t/sending-html-email/1084/3 "2023-11-17T05:54:58Z")

</div>

You can just set msg.payload to a html string and it will become an html formatted email (?)

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [17 November 2023 06:12 UTC](https://discourse.nodered.org/t/sending-html-email/1084/4 "2023-11-17T06:12:04Z")

</div>

wish i knew how... going to google now.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [17 November 2023 07:33 UTC](https://discourse.nodered.org/t/sending-html-email/1084/5 "2023-11-17T07:33:51Z")

</div>

This thread might help:

> [@How to send an image from mqtt in an email](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/10):
>
> Sure the examples help you - you adapt them. Just because someone hasnt done it before they ceraintly have send images, they have converted buffers to base64 and back. So taking [this thread](https://discourse.nodered.org/t/emailing-image-from-ip-camera/9791/8) I made this... [image] and received this in my inbox... sample flow (note i deleted the email node for privacy)... [{"id":"e73e2624.4459a8","type":"inject","z":"e360ac5b.0ab79","name":"base 64 image","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onc…

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [17 November 2023 16:12 UTC](https://discourse.nodered.org/t/sending-html-email/1084/6 "2023-11-17T16:12:58Z")

</div>

it was indeed very useful. learnt a new thing today. thank you.

---

<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:** [1 December 2023 16:13 UTC](https://discourse.nodered.org/t/sending-html-email/1084/7 "2023-12-01T16:13:06Z")

</div>

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