{ "id": "60657", "key": "TIMOB-25", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "11210", "name": "Release 0.6.0", "archived": true, "released": true, "releaseDate": "2009-08-12" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:50:09.000+0000", "created": "2011-04-15T02:22:40.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:50:09.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
The purpose of this API is to display an email dialog for\nsending a mesage
\n\n\nvar emailDialog = Titanium.UI.createEmailDialog()\nemailDialog.setSubject('foo');\nemailDialog.setToRecipients(['fred@gmail.com', 'joe@hotmail.com']);\nemailDialog.setCcRecipients(['joe@gmail.com']);\nemailDialog.setBccRecipients(['obama@whitehouse.gov']);\nemailDialog.setMessageBody('my body string');\nemailDialog.addAttachment({mimeType:'image/jpeg', file:'path/to/image'});\nemailDialog.open();\n\nNote: all of these can be passed in as a JSON object to the contructor
\n
\nsubject : subject line for email
\ntoRecipients : array of email address\nstrings
\nccRecipients : array of email address\nstring
\nbccRecipients : array of email address\nstring
\nmessageBody : email message text
\nattachment : JSON object that includes\n'mimeType' and 'file' which is the path to the attached file
Update: Partially implemented save addAttachment of the format\nmentioned. Attachments of the imageBlob format (IE, what's gotten\nfrom the camera) is implemented, and fileBlobs will be implemented\nin the future.
\nThere is space for a callback or the results of the email\ncomposition: sent, cancelled, failed, saved.