Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked April 27th 2010 by Judy Adabie
  • attachment
  • email
  • file
  • filesystem
0 Comments

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.

    — answered May 19th 2010 by Peruna Mustang
    permalink
    0 Comments
  • 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();
    
    — answered May 19th 2010 by Peruna Mustang
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.