Android:使用html预填充电子邮件

时间:2012-12-04 16:23:31

标签: android html email utf-8

我有这个代码预先填写电子邮件并提出意图:

Intent email_intent = new Intent(Intent.ACTION_SEND_MULTIPLE);   
email_intent.putExtra(Intent.EXTRA_SUBJECT,
"iTempco"+getString(R.string.superficie_scambio));  
email_intent.putExtra(Intent.EXTRA_TEXT,{{here_the_html_code}});
email_intent.setType("text/html");  
startActivity(email_intent);

你看到{{here_the_html_code}}我有一个带有html代码的字符串(工作正常)。 问题是,当抛出活动时,我看到客户端文本区域中的html代码(源代码),而不是“转换后的”

我怎么能?

感谢。

1 个答案:

答案 0 :(得分:0)

我有同样的问题,但无法解决。 大多数默认电子邮件客户端都不会处理html标记。 我找到的最佳解决方法是将html作为附件发送。

检查我的问题: Is it possible to send html with the mail intent?

相关问题