{ "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}

Description

\n

The purpose of this API is to display an email dialog for\nsending a mesage

\n

Example

\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
\n

API Arguments

\n

subject : subject line for email

\n

toRecipients : array of email address\nstrings

\n

ccRecipients : array of email address\nstring

\n

bccRecipients : array of email address\nstring

\n

messageBody : email message text

\n

attachment : JSON object that includes\n'mimeType' and 'file' which is the path to the attached file

{html}", "attachment": [], "flagged": false, "summary": "Titanium.UI.createEmailDialog", "creator": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "122669", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

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.

\n

There is space for a callback or the results of the email\ncomposition: sent, cancelled, failed, saved.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T02:22:40.000+0000", "updated": "2011-04-15T02:22:40.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }