Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1574] Android EmailDialog not supporting html body

GitHub Issuen/a
TypeBug
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:56:33.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T02:56:24.000+0000
Updated2011-04-17T01:56:33.000+0000

Description

If you set html: true and put in a message body that contains html markup, the markup just shows up in the e-mail dialog "as-is" (i.e., you see the brackets and such.) The message is not really sent as html.

Comments

  1. Bill Dawson 2011-04-15

    Commit:
    http://github.com/appcelerator/titanium_mobile/commit/18c69b0928cae6f2f7ffe3aadbb0929d06f0f868"> http://github.com/appcelerator/titanium_mobile/commit/18c69b0928cae...

    Documentation commit:

    Notes:

    • 1.6 emulator doesn't support html: true at all. (No applications will be found to fulfill the request.) A device might, but the emulator no. Recommend that html not be used with 1.6.

    • 2.1 / 2.2: emulator shows the formatted html in the send dialog, but you don't actually get the html at the receiving end. Device, however (at least mine), sends it correctly -- recipient gets the marked up html.

  2. Bill Dawson 2011-04-15

    Test case:

       var email = Ti.UI.createEmailDialog( {
           html: true,
           messageBody: '<html><body>This is <b>my message</b>.</body></html>',
           subject: 'Test e-mail from Titanium',
           toRecipients: ['xxx@xxx.com']
       });
       email.open();
       
  3. Bill Dawson 2011-04-15

    Sorry, should have kept assigned to me.

  4. Thomas Huelbert 2011-04-15

    confirmed on nexus 1 running 2.2 - email sent and received had correctly html properties. Also confirmed on iOS (ipad 3.2.2 and 4.0 ipod touch). Failed for me using the android emulator with api's 1.6-2.2 fwiw."no applications can perform this action"

  5. sujeet kumar 2011-04-15

    When you will fix it for android api's 1.6-2.2

JSON Source