Text File attachment issue
I'm attaching a text file to my email. But, the data is just displayed in the body of the email. Is the a way to make this file a true attachment to the email?
2 Answers
-
can you post your code?
I believe you are trying to do a mime attachment. I haven't seen an example of that yet.
-
https://developer.appcelerator.com/question/18401/is-it-possible-to-send-email-from-appcelerator
var emailDialog = Titanium.UI.createEmailDialog(); emailDialog.subject = "Hello from Titanium"; emailDialog.toRecipients = ['nowhere@nowhere.com']; emailDialog.messageBody = '<b>Appcelerator Titanium Rocks!</b>'; var f = Ti.Filesystem.getFile('cricket.wav'); emailDialog.addAttachment(f); emailDialog.open();