why does this email code work fine on IOS but is not formatted on Android? (code attached)

This code works fine on IOS & the email created has it body in formatted html.  

When I run on Android (Nexus 7) the HTML comes out as just text, and not html formatted at all. 

Any ideas why?

local centerX = display.contentCenterX local centerY = display.contentCenterY local \_W = display.contentWidth local \_H = display.contentHeight -- Require the widget library local widget = require( "widget" ) local emailImage = display.newImage( "email.png", centerX, 156 ) local function onSendEmail( event ) &nbsp;&nbsp;&nbsp;&nbsp;local options = &nbsp;&nbsp;&nbsp;&nbsp;{ &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; to = { }, &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; cc = { }, &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; subject = "Test", &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; isBodyHtml = true, &nbsp;&nbsp;&nbsp;&nbsp; &nbsp; body = [[&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<html\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<head\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</head\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<body\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<table border="1"\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<tbody\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<tr\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<th\>Table header\</th\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<th\>Table header\</th\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</tr\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<tr\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<td\>Table cell 1\</td\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<td\>Table cell 2\</td\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</tr\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<tr\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<td\>Table cell 3\</td\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \<td\>Table cell 4\</td\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</tr\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</tbody\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</table\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</body\> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; \</html\> &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;]], &nbsp;&nbsp;&nbsp;&nbsp;} &nbsp;&nbsp;&nbsp;&nbsp;local result = native.showPopup("mail", options) end local sendEmail = widget.newButton { &nbsp;&nbsp;&nbsp;&nbsp;left = 0,&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;top = 0, &nbsp;&nbsp;&nbsp;&nbsp;width = 298, &nbsp;&nbsp;&nbsp;&nbsp;height = 56, &nbsp;&nbsp;&nbsp;&nbsp;label = "Compose Email", &nbsp;&nbsp;&nbsp;&nbsp;onRelease = onSendEmail } -- center horizontally on the screen sendEmail.x = centerX sendEmail.y = \_H - 156 &nbsp;

Not sure why, but have you tried adding a <!DOCTYPE html> to your body?

unfortunately didn’t help

Seems like the table tag may not be supported http://stackoverflow.com/questions/4350072/use-table-tag-in-android-email

Perhaps just load as a HTML file attachment I guess then?

Not sure why, but have you tried adding a <!DOCTYPE html> to your body?

unfortunately didn’t help

Seems like the table tag may not be supported http://stackoverflow.com/questions/4350072/use-table-tag-in-android-email

Perhaps just load as a HTML file attachment I guess then?