Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (android)
Viewing all articles
Browse latest Browse all 7655

Email attachment

$
0
0

Hi all i had written code for email dialoge to open email from my application but the problem is am not able to send attachments. and my requirement is i need add multiple attachments to email. but im not able to do it well i'm trying to execute in both platforms ios and android.

var emailDialog = Ti.UI.createEmailDialog({
        html : true
    });
    emailDialog.subject = "Kindly enter the subject";
    emailDialog.toRecipients = "jkusuma12@gmail.com";
var link;
for (var j = 0; j < array.length; j++) {
             link = Ti.Filesystem.getFile(link);
 
        }
 
emailDialog.addAttachment(link);
emailDialog.messageBody = "<html><body>" + link + "</body></html>";
        emailDialog.open();
and one more thing is email dialog opens before for loop runs means statements are running asynchornuslly how can i handle it.

Viewing all articles
Browse latest Browse all 7655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>