Android 操作\u SEND text/html未使用html图像标记发送图像

Android 操作\u SEND text/html未使用html图像标记发送图像,android,Android,我正在发送和电子邮件,其中嵌入了锚定标签的图像标签,就像这样 <p><a href=\"http://www.mycompanyurl.com\"><img src=\"http://www.mycompanyurl.com/assets/images/emails/logo_phone.png\" width=\"82\" height=\"22\" vspace=\"5\" border=\"0\"></a><br>" ” 当我

我正在发送和电子邮件,其中嵌入了锚定标签的图像标签,就像这样

<p><a href=\"http://www.mycompanyurl.com\"><img src=\"http://www.mycompanyurl.com/assets/images/emails/logo_phone.png\" width=\"82\" height=\"22\" vspace=\"5\" border=\"0\"></a><br>"

当我收到电子邮件时,接收端收到的是邮件正文中的“obj”标签。链接正常,但图像不显示。我遗漏了什么?非常感谢您在这方面提供的任何帮助或提示。以下是我的代码

final Intent email = new Intent(Intent.ACTION_SEND);
email.setType("text/html");
email.putExtra(Intent.EXTRA_SUBJECT, "test html with images");
email.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(new StringBuilder()
.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\">")
.append("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=ISO-8859-1\" />")
.append("<title>test html with images</title><style type=\"text/css\"><!--body,td,th {  font-family: Arial, Helvetica, sans-serif;  font-size: 12px;    color: #000000;}body {  background-color: #FFFFFF;}a {  font-size: 12px;    color: #000000;}a:visited { color: #000000;}a:hover {   color: #666666;}a:active {  color: #000000;}--></style></head>")        
.append("<html><body bgcolor=\"#FFFFFF\"><div><table width=\"240\" height=\"360\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"><tbody><tr><td align=\"center\" valign=\"top\">") 
.append("<p><a href=\"http://www.mycompanyurl.com\"><img src=\"http://www.mycompanyurl.com/images/emails/logo_phone.png\" width=\"82\" height=\"22\" vspace=\"5\" border=\"0\"></a><br>").toString()));
final Intent email=新意图(Intent.ACTION\u SEND);
email.setType(“text/html”);
email.putExtra(Intent.EXTRA_主题,“用图像测试html”);
email.putExtra(Intent.EXTRA_TEXT,Html.fromHtml(new StringBuilder())
.附加(“”)
.附加(“”)
.append(“使用图像测试html”)
.附加(“”)
.append(“
”).toString());
是什么服务于Intent、电子邮件还是Gmail

我知道Gmail不支持HTML电子邮件合成。它支持链接和HTML格式的子集,但不支持HTML本身。Gmail Android应用程序或多或少支持Gmail web应用程序中提供的格式


IIRC电子邮件应用程序只支持链接和基本文本格式,如粗体、斜体等。

什么是服务的意图,电子邮件或Gmail

我知道Gmail不支持HTML电子邮件合成。它支持链接和HTML格式的子集,但不支持HTML本身。Gmail Android应用程序或多或少支持Gmail web应用程序中提供的格式


IIRC该电子邮件应用程序只支持链接和基本文本格式,如粗体、斜体等。

我使用Gmail并将其发送到雅虎帐户。然后,就像我说的,Gmail不支持您尝试做的事情。我使用Gmail并将其发送到雅虎帐户。然后,就像我说的,Gmail不支持您尝试做的事情o。