Check your mail is sent or not with emaildialog with your iPhone/Android apps using Titanium.
Using emailDialog from your iPhone/Android apps with titanium we can send mail. But there is a way we can check, the mail is sent or not easily.
Code Block :
//Creates the email dialog box var myEmailDialog = Ti.UI.createEmailDialog(); //Add the message for body myEmailDialog.messageBody = "Message body content"; //Add the complete event to check the mail status myEmailDialog.addEventListener('complete', function(e){ //Check the mail is completely sent or not if(e.result == myEmailDialog.SENT){ alert("Mail Sent"); } }); //Open the dialog to send the mail myEmailDialog.open();