<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Email with attachments]]></title><description><![CDATA[<p dir="auto">Hi Team,</p>
<p dir="auto">I had a scenario to send emails with multiple attachments. Attachments will be saved in Cloudbackend Uploads folder. I thought of using  cloudbackend api to do that. But below github snippet is not working for excel files. How can i achieve it to send with multiple attachments of files saved in Uploads folder.</p>
<p dir="auto"><strong>Snippet</strong><br />
var request = require('request').defaults({ encoding: null });<br />
var imgURL = "<a href="https://upload.wikimedia.org/wikipedia/en/0/0b/Nickelodeon_SpongeBob_SquarePants_Characters_Cast.png" rel="nofollow ugc">https://upload.wikimedia.org/wikipedia/en/0/0b/Nickelodeon_SpongeBob_SquarePants_Characters_Cast.png</a>";</p>
<p dir="auto">request.get(imgURL, function (err, res, body) {<br />
var attachments =[{<br />
filename : "mypicture.jpg",<br />
content: body<br />
}];<br />
var replyTo = [{<br />
email : "<a href="mailto:johnny.doe@yopmail.com" rel="nofollow ugc">johnny.doe@yopmail.com</a>",<br />
name : "Johnny Doe"<br />
}];</p>
<pre><code>cloudbackend.sendEmailAdvanced("john.doe@yopmail.com", "John Doe", "barbara.dess@yopmail.com", "michel.ane@yopmail.com;sarah.croche@yopmail.com;jeremy.sciglio@yopmail.com", "frank.spritz@yopmail.com", "Hello", "How are you?", attachments, false, replyTo)
.then(function(response) {
		console.log(response);
});
</code></pre>
<p dir="auto">});</p>
]]></description><link>https://community.appdrag.com/topic/257/email-with-attachments</link><generator>RSS for Node</generator><lastBuildDate>Wed, 19 Aug 2026 20:28:14 GMT</lastBuildDate><atom:link href="https://community.appdrag.com/topic/257.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 24 Jul 2020 15:35:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Email with attachments on Mon, 27 Jul 2020 13:36:51 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://community.appdrag.com/plugins/nodebb-plugin-emoji/emoji/android/1f64f.png?v=lfk1vimvd74" class="not-responsive emoji emoji-android emoji--pray" title=":pray:" alt="🙏" /> Perfect !</p>
]]></description><link>https://community.appdrag.com/post/947</link><guid isPermaLink="true">https://community.appdrag.com/post/947</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Mon, 27 Jul 2020 13:36:51 GMT</pubDate></item><item><title><![CDATA[Reply to Email with attachments on Mon, 27 Jul 2020 08:43:04 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://community.appdrag.com/uid/2">@Wassim</a><br />
It works</p>
]]></description><link>https://community.appdrag.com/post/941</link><guid isPermaLink="true">https://community.appdrag.com/post/941</guid><dc:creator><![CDATA[vinoth kumar]]></dc:creator><pubDate>Mon, 27 Jul 2020 08:43:04 GMT</pubDate></item><item><title><![CDATA[Reply to Email with attachments on Sun, 26 Jul 2020 09:00:55 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">First of all, no problem with multi-attachement and xls files, I just did a try with the npm package sample:</p>
<p dir="auto"><img src="/assets/uploads/files/1595753925939-239a90c7-6b9d-4482-a343-f93ec0c65711-image.png" alt="239a90c7-6b9d-4482-a343-f93ec0c65711-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto"><img src="/assets/uploads/files/1595753882631-5ba10999-dfee-414b-8b08-e9579f184f73-image.png" alt="5ba10999-dfee-414b-8b08-e9579f184f73-image.png" class="img-responsive img-markdown" /></p>
<p dir="auto">So if you want to use cloudbackend uploaded files you still need to read it using request as our example shows and the only difference is the URL you provide.</p>
<p dir="auto">It would looks like :</p>
<pre><code>var fileURL = 'https://yourappid.appdrag.site/whateverfolder/myxlsfile.xls
</code></pre>
]]></description><link>https://community.appdrag.com/post/935</link><guid isPermaLink="true">https://community.appdrag.com/post/935</guid><dc:creator><![CDATA[Wassim]]></dc:creator><pubDate>Sun, 26 Jul 2020 09:00:55 GMT</pubDate></item></channel></rss>