title: Mailgun: Sending image using parse cloud code
body: <p>I have a code defined as</p>
  
  <pre><code>Parse.Cloud.define("mailgunSendMail", function(request, response) {
  
                 var Mailgun = require('mailgun');
                 Mailgun.initialize('photoshare.com', 'APPKey');
  
                 Mailgun.sendEmail({
                                   to: "toTestUser@mail.com",
                                   from: "fromTestUser@mail.com",
                                   subject: "Hello from Cloud Code!",
                                   text: "Using Parse and Mailgun is great!",
                                   attachment:"ZXhhbXBsZSBmaWxl"
                                   }, {
                                   success: function(httpResponse) {
                                   console.log(httpResponse);
                                   response.success("Email sent!");
                                   },
                                   error: function(httpResponse) {
                                   console.error(httpResponse);
                                   response.error("Uh oh, something went wrong");
                                   }
                                   });
                 });
  </code></pre>
  
  <p>Mail was sent successfully and recipient got the mail but the attachment is missing. How can i send attachment in the form of data?</p>