是否可以发送HTML的邮件意图是什么? [英] Is it possible to send html with the mail intent?
本文介绍了是否可以发送HTML的邮件意图是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是可以发送HTML的邮件意图。我已经看到了这个一些问题,但他们是人的回答是这样的:
is it possible to send html with the mail intent. I've seen some questions about this, but they are al answered with something like this:
final Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND);
emailIntent.setType("text/html");
emailIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, titleString);
emailIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(htmlString));
startActivity(Intent.createChooser(emailIntent, "Email:"));
我想发送一些表中的数据,但Html.fromHtml会删除我的表布局。
I'm trying to send some data in a table but the Html.fromHtml will remove my table layout..
是否有任何其他选项,发送html内容类型的电子邮件...?
Is there any other option to send a html content type email...?
推荐答案
解决了以下解决方法:
创建一个HTML文件,并将其作为附件发送。
Create a html file and send it as a attachment..
这篇关于是否可以发送HTML的邮件意图是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文