# How to send an image from mqtt in an email

**URL:** <https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087>\
**Category:** General\
**Created:** [22 May 2020 13:31 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087 "2020-05-22T13:31:56Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [22 May 2020 15:52 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/21 "2020-05-22T15:52:35Z")

</div>

Sorry. You need to now put a base64 between the set msg.payload and set "flow3" node so that the content is a buffer.

---

<div class="post-metadata">

**Author:** ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)\
**Post date:** [22 May 2020 15:57 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/22 "2020-05-22T15:57:31Z")

</div>

Dont worry, im just thinking if the code you used in flow 3 is different on my flow because the name or something

---

<div class="post-metadata">

**Author:** ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)\
**Post date:** [22 May 2020 16:00 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/23 "2020-05-22T16:00:04Z")

</div>

WE GOT IT!!!

Ill give you a kiss if you were in front of me jajaja.Thank you very much, could you explain me why this works? I will like to understand it

---

<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:** [22 May 2020 16:07 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/24 "2020-05-22T16:07:53Z")

</div>

You're gonna have to first watch that play list. Then read the info built into the email node.

You'll understand after that.

---

<div class="post-metadata">

**Author:** ![carrero](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@carrero](https://discourse.nodered.org/u/carrero)\
**Post date:** [22 May 2020 23:44 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/25 "2020-05-22T23:44:38Z")

</div>

You were right. Now i understand change, join, split and switch node. Thank you for your support. Best wishes

---

<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:** [21 July 2020 23:44 UTC](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087/26 "2020-07-21T23:44:40Z")

</div>

Closed on 21 July 2020 23:44 UTC

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

[Previous page](https://discourse.nodered.org/t/how-to-send-an-image-from-mqtt-in-an-email/27087.md?page=1)
