如何通过android默认电子邮件客户端发送带有图像的html内容? [英] How to send html content with image through android default email client?

查看:93
本文介绍了如何通过android默认电子邮件客户端发送带有图像的html内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


解决方案

>你不能。由于默认电子邮件应用程序不支持< img /> 标签。



因为 ImageSpan 不实现 Parcelable



因此,它的失败与 Intent的PUT_EXTRA 即可。



它仅适用于基本标签,例如< b>,< i> ..etc



查看使用< table>等在Android中发送html电子邮件 - 真的没有相对内置的Intent方式吗?如何在电子邮件正文中显示图像?


How can we get inline images in default email client for android through Hypertext Markup Language (HTML) ?

解决方案

You can not. As default Email application's doesn't support <img /> tag.

Because, ImageSpan doesn't implementing Parcelable.

Hence its failed with Intent's PUT_EXTRA.

Its works only for basic tags, like, <b>, <i> ..etc

Look at Sending html email in android using <table>, etc. - is there really no relatively built-in Intent way? and How to show an image in the email body?

这篇关于如何通过android默认电子邮件客户端发送带有图像的html内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆