如何使用Android意图发送HTML邮件 [英] How to send HTML mail using Android intent
本文介绍了如何使用Android意图发送HTML邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
final Intent shareIntent= new Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:"));
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "The Subject");
shareIntent.putExtra(
Intent.EXTRA_TEXT,
Html.fromHtml(new StringBuilder()
.append("<p><b>Some Content</b></p>")
.append("<small><p>More content</p></small>")
.toString())
);
即使我已经从解决的问题(如何发送HTML电子邮件)。
Even I have pasted this code from a solved question(How to send HTML email). Still not working in my case.
推荐答案
它看起来像是GMail应用程序中的回归。以前工作正常,现在不再工作了。这可能是一个错误,或者它可能因为安全原因被故意禁用...
无论如何,我不认为你可以解决这个在你身边
It looks like a regression in the GMail app. It was working fine before and now it's not working anymore. It might be a bug or it might have been disabled on purpose for security reasons... Anyway I don't think you'll be able to fix this on your side
这篇关于如何使用Android意图发送HTML邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文