Titanium Community Questions & Answer Archive

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

Remove Attachment from email

I know there is a add attachment like

Titanium.UI.EmailDialog.addAttachment

Do we have a remove attachment command such as

Titanium.UI.EmailDialog.removeAttachment

Thanks!

— asked March 31st 2010 by Peter Lum
  • addattachment
  • attachment
  • dialog
  • email
0 Comments

2 Answers

  • Accepted Answer

    No. There doesn't seem to be any native facility for this although I think it would be relatively straightforward to add. Currently, however, you must discard the entire email.

    Note also the following from the iPhone OS Reference Library:

    Important: The mail composition interface itself is not customizable and must not be modified by your application. In addition, after presenting the interface, your application is not allowed to make further changes to the email content. The user may still edit the content using the interface, but programmatic changes are ignored. Thus, you must set the values of content fields before presenting the interface.

    — answered March 31st 2010 by James K
    permalink
    0 Comments
  • Ok, what I've done is to discard the entire email and re-attach the attachment.

    Thanks!

    — answered March 31st 2010 by Peter Lum
    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.