HTML:以mailto?body发送图像 [英] HTML: send image in mailto?body

查看:147
本文介绍了HTML:以mailto?body发送图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我习惯使用mailto功能设置带有文本的电子邮件的正文和主题,例如:

I am used to setting the body and subject of an email with text with the mailto function, eg:

href="mailto:?body=Thanks!"

但是有什么方法可以在体内发送图像吗?例如:

But is there a way to send an image in the body? Eg:

href="mailto:?body=<img src='http://www.example.com/image.jpg'>"

(显然,上面的方法不起作用-只是将html添加为字符串)

(obviously above doesn't work - it just adds the html as a string)

任何建议,不胜感激!谢谢!

Any advice appreciated! Thanks!

推荐答案

马的嘴巴 :

"body"名称应包含第一个的内容 邮件的文本/纯文本部分. mailto URL主要是 用于生成实际上是短消息的短消息 自动处理的内容(例如订阅"消息) 用于邮件列表),而不是常规的MIME正文.

The "body" hname should contain the content for the first text/plain body part of the message. The mailto URL is primarily intended for generation of short text messages that are actually the content of automatic processing (such as "subscribe" messages for mailing lists), not general MIME bodies.

换句话说,内容是文本/纯格式,而不是MIME HTML.

In other words, the content is in text/plain format, not MIME HTML.

这篇关于HTML:以mailto?body发送图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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