[TIMOB-7196] MobileWeb: Ti.UI.EmailDialog
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-02-09T16:05:45.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Sprint 2012-03, Release 2.0.0, Release 1.8.2 |
Components | MobileWeb |
Labels | qe-port, stage2 |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-01-15T18:38:39.000+0000 |
Updated | 2012-08-27T16:25:00.000+0000 |
Description
Missing entire implementation.
EmailDialog isn't really a "dialog". It is simply invoking the native mail client. For mobile web, we'll do this using mailto: href.
Here's some of the mailto: params we can set:
mailto:user@domain.com?subject=test&cc=someelse@domain.com&bcc=another@domain.com&body=hello%20world
All params must be url encoded (i.e. %20 for spaces, etc). Line returns (i.e. \n) should be encoded as %0A. Multiple email address to be comma separated.
Entire mailto: string should be no longer than 2000 characters.
Extends Evented.
Methods:
* open() - construct the mailto and set the location.href to it
Properties
* bccRecipients - Array
* ccRecipients - Array
* html - bool - need to investigate that HTML can even be passed in the body and that it's correctly interpreted
* messageBody
* subject
* toRecipients
Constants:
* CANCELLED
* FAILED
* SAVED
* SENT
Events:
* complete
Update API docs that the following methods are not supported:
* addAttachment()
Unsupported properties:
* barColor
Attachments
File | Date | Size |
---|---|---|
app.js | 2012-02-09T12:59:29.000+0000 | 5241 |
Pull request: https://github.com/appcelerator/titanium_mobile/pull/1387
Verified fix on: Titanium studio : 2.1.1.201207271312 SDK version : 2.2.0.v20120824175712 Chrome 21.0.xx Firefox 14.0.1 Safari 6.0 Android 2.3.6 default browser Iphone 5.0.1 mobile safari