# Multiple picture send to email

**URL:** <https://discourse.nodered.org/t/multiple-picture-send-to-email/24477>\
**Category:** General\
**Created:** [8 April 2020 19:27 UTC](https://discourse.nodered.org/t/multiple-picture-send-to-email/24477 "2020-04-08T19:27:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![usmanEmder](https://avatars.discourse-cdn.com/v4/letter/u/977dab/32.png) [@usmanEmder](https://discourse.nodered.org/u/usmanEmder)\
**Post date:** [8 April 2020 19:27 UTC](https://discourse.nodered.org/t/multiple-picture-send-to-email/24477/1 "2020-04-08T19:27:29Z")

</div>

Hi, I am using the following nodes to take a picture from RPi cam and then send it to email.

```auto
[{"id":"f5e22b0.5d7bdd8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"9277c6bf.bf8c68","type":"inject","z":"f5e22b0.5d7bdd8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":220,"y":180,"wires":[["26da5578.c1254a"]]},{"id":"26da5578.c1254a","type":"camerapi-takephoto","z":"f5e22b0.5d7bdd8","filemode":"1","filename":"photo1.JPEG","filedefpath":"0","filepath":"/home/pi/Desktop/Demo","fileformat":"jpeg","resolution":"1","rotation":"0","fliph":"0","flipv":"0","brightness":"50","contrast":"0","sharpness":"0","quality":"80","imageeffect":"none","exposuremode":"auto","iso":"0","agcwait":"1.0","led":"0","awb":"auto","name":"","x":420,"y":200,"wires":[["aa743f02.9493","185c721c.4b90be"]]},{"id":"3337db10.00ed54","type":"e-mail","z":"f5e22b0.5d7bdd8","server":"smtp.gmail.com","port":"465","secure":true,"tls":true,"name":"receiver@gmail.com","dname":"","x":980,"y":520,"wires":[]},{"id":"185c721c.4b90be","type":"function","z":"f5e22b0.5d7bdd8","name":"","func":"msg.payload={};\nmsg.payload.type=\"photo\";\nmsg.payload.caption=\"Next photo in sequence\";\nmsg.payload.content=\"/home/pi/Desktop/Demophoto1.JPEG\";\nreturn msg;","outputs":1,"noerr":0,"x":430,"y":280,"wires":[["26b8dad9.f3ba06"]]},{"id":"aa743f02.9493","type":"debug","z":"f5e22b0.5d7bdd8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":790,"y":100,"wires":[]},{"id":"369fef0a.39566","type":"debug","z":"f5e22b0.5d7bdd8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1010,"y":380,"wires":[]},{"id":"26b8dad9.f3ba06","type":"file in","z":"f5e22b0.5d7bdd8","name":"","filename":"/home/pi/Desktop/Demophoto1.JPEG","format":"","chunk":false,"sendError":false,"x":610,"y":360,"wires":[["71cedaeb.7f7f64","369fef0a.39566"]]},{"id":"71cedaeb.7f7f64","type":"change","z":"f5e22b0.5d7bdd8","name":"","rules":[{"t":"set","p":"to","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":770,"y":480,"wires":[["3337db10.00ed54"]]}]

```

But I wanna take 3 pictures and then send them in one email. Could anyone help me?

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 April 2020 21:33 UTC](https://discourse.nodered.org/t/multiple-picture-send-to-email/24477/2 "2020-04-08T21:33:27Z")

</div>

See the email info window...  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/c/8c88998f81eccfd4ccf0ae3e7f7be9bd39c8bf29.png)  
which has a link to the properties you need to add.

---

<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:** [7 June 2020 21:33 UTC](https://discourse.nodered.org/t/multiple-picture-send-to-email/24477/3 "2020-06-07T21:33:31Z")

</div>

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