Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7196] MobileWeb: Ti.UI.EmailDialog

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-09T16:05:45.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsMobileWeb
Labelsqe-port, stage2
ReporterChris Barber
AssigneeChris Barber
Created2012-01-15T18:38:39.000+0000
Updated2012-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

FileDateSize
app.js2012-02-09T12:59:29.000+00005241

Comments

  1. Chris Barber 2012-02-09

    Pull request: https://github.com/appcelerator/titanium_mobile/pull/1387
  2. Lokesh Choudhary 2012-08-27

    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

JSON Source