Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19403] Android: Email dialog (gmail) - can't see html images

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2015-09-28T16:27:50.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterShuo Liang
AssigneeEric Merriman
Created2015-08-25T08:15:15.000+0000
Updated2017-03-21T17:51:56.000+0000

Description

Reproduce:

1. Simply run following code. (create a email dialog)
var emailDialog = Ti.UI.createEmailDialog({
		subject: "test",
		html: true,,
		messageBody: '<table style="font-size:0;line-height:0;width:auto; border-collapse: collapse;border-spacing: 0;table-layout:fixed;"><tbody><tr style="padding:0;margin:0;border:none;"><td style="padding:0;margin:0;border:none;"><div><a href="http://shoutout.wix.com/so/997f99e2-3a72-4da6-981f-5979e7a09de8"> RONY RULES</div> </td></tr><tr style="padding:0;margin:0;border:none;"><td style="padding:0;margin:0;border:none;"><div><a href="http://shoutout.wix.com/so/997f99e2-3a72-4da6-981f-5979e7a09de8"> <img src="http://storage.googleapis.com/web-snapshotter/ee7014a9-16a9-44d7-b580-92ea18368a12-bbb0b32a-ffd0-4e46-99af-276efea889cb_region0.png" alt="Every ShoutOut has a main message. Click here to tell your audience what you want them to know, how to take action and where to reach you." usemap="#region1" style="border: 0; max-width: 100%; "> </a></div> </td></tr><tr style="padding:0;margin:0;border:none;"><td style="padding:0;margin:0;border:none;"><div><a href="http://shoutout.wix.com/so/997f99e2-3a72-4da6-981f-5979e7a09de8"> <img src="http://storage.googleapis.com/web-snapshotter/997f99e2-3a72-4da6-981f-5979e7a09de8-7f3853dd-0423-41cd-b9b5-b3de9984ccea_region2.png" alt="Image" usemap="#region2" style="border: 0; max-width: 100%; "> </a></div> </td></tr><tr style="padding:0;margin:0;border:none;"><td style="padding:0;margin:0;border:none;"><div><a href="http://shoutout.wix.com/so/997f99e2-3a72-4da6-981f-5979e7a09de8"> <img src="http://storage.googleapis.com/web-snapshotter/997f99e2-3a72-4da6-981f-5979e7a09de8-7f3853dd-0423-41cd-b9b5-b3de9984ccea_region3.png" alt="" usemap="#region3" style="border: 0; max-width: 100%; "> </a></div><div><map name="region3" style="outline:none;"> <area shape="rect" coords="71,33,71,33" href="//maps.google.com/?q=" alt="//maps.google.com/?q=" target="_blank" style="outline:none;"> <area shape="rect" coords="71,36,71,36" href="tel:" alt="tel:" target="_blank" style="outline:none;"> <area shape="rect" coords="337.5,38,365.5,66" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fshoutout.wix.com%2Fso%2F997f99e2-3a72-4da6-981f-5979e7a09de8%23%2Fmain" alt="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fshoutout.wix.com%2Fso%2F997f99e2-3a72-4da6-981f-5979e7a09de8%23%2Fmain" target="_blank" style="outline:none;"> <area shape="rect" coords="372.5,38,400.5,66" href="https://twitter.com/home?status=http%3A%2F%2Fshoutout.wix.com%2Fso%2F997f99e2-3a72-4da6-981f-5979e7a09de8%23%2Fmain" alt="https://twitter.com/home?status=http%3A%2F%2Fshoutout.wix.com%2Fso%2F997f99e2-3a72-4da6-981f-5979e7a09de8%23%2Fmain" target="_blank" style="outline:none;"> <area shape="rect" coords="407.5,38,435.5,66" href="//pinterest.com/pin/create/button/?url=http%3A%2F%2Fshoutout.wix.com%2Fso%2F997f99e2-3a72-4da6-981f-5979e7a09de8%23%2Fmain&media=http://storage.googleapis.com/shoutout-images/mobile_upload_1421152485956&description=Write Your Title Here" alt="//pinterest.com/pin/create/button/?url=http%3A%2F%2Fshoutout.wix.com%2Fso%2F997f99e2-3a72-4da6-981f-5979e7a09de8%23%2Fmain&media=http://storage.googleapis.com/shoutout-images/mobile_upload_1421152485956&description=Write Your Title Here" target="_blank" style="outline:none;"> <area shape="rect" coords="414.921875,103,473.0625,120" href="//shoutout.wix.com" alt="//shoutout.wix.com" target="_blank" style="outline:none;"> </map></div> </td></tr></tbody></table>'
	});

emailDialog.open();
2. Choose the gmail when device ask for email sector.

Expect:

Should see all the html content, include the image

Actual:

The image displayed a little square with that reads OBJ (see attached)

Attachments

FileDateSize
Screenshot_2015-08-25-10-46-38.png2015-08-25T08:15:13.000+0000123554

Comments

  1. Ingo Muschenetz 2015-09-21

    Can you check to see if this is natively possible?
  2. Chee Kiat Ng 2015-09-22

    [~msamah] have a look?
  3. Ashraf Abu 2015-09-22

    What we are doing is basically sending an intent for an Email. After that, the user chooses which email client he wants to send the email with. What we are doing is exactly how you would do it natively. It doesn't seem to be possible (easily), even natively. There's a lot of info on people trying to achieve the same thing with no success:- http://stackoverflow.com/questions/5244472/how-to-add-an-image-in-email-body http://stackoverflow.com/questions/27228136/how-to-send-image-as-body-content-in-mail-android Best alternative is to send an attachment.
  4. Ingo Muschenetz 2015-09-28

    Marking as won't fix as this is not natively supported.
  5. Lee Morris 2017-03-21

    Closing ticket as the issue will not fix.

JSON Source