opening email dialog on clicking Tab
Pls guide me how to open Email Dialog with pre-filled values after cliking/taping TAB
Thanks
1 Answer
-
b.addEventListener('click',function()
{
var emailDialog = Titanium.UI.createEmailDialog();
emailDialog.subject = "Hello from IPhone!";
emailDialog.toRecipients = ['varun_atl@yahoo.com'];
emailDialog.messageBody = 'You have been sent an email from IPhone. Please see attachement';
f = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory+'/generated.html');
Titanium.API.info(f);
emailDialog.addAttachment(f);
emailDialog.addEventListener('complete',function(e)
{
if (e.result == emailDialog.SENT)
{
Titanium.UI.createAlertDialog({
title:'Message Sent',
message: 'Thanks for your feedback!'
}).show();
}
});
emailDialog.open();
});