如何使用html格式的电子邮件预先填充电子邮件链接 [英] How do I pre-populate an email link with an html formatted email

查看:209
本文介绍了如何使用html格式的电子邮件预先填充电子邮件链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想预先填写一个电子邮件链接,请执行以下操作:(以非常简单的格式,恕不讳言)

If I wanted to prepopulate an email link like: (in a really simple format, pardon for the bad example.)

<a href="mailto:barney@example.com?subject=About your bouncy ball&body=<img src='example.com/images/logo.png'>Hey Barney, Is your bouncy ball still for sale?">Email 3 Barney Today!</a>

并且html实际上显示为html,有没有办法这样做。

and have the html actually show as html, is there a way to do so.

推荐答案

你想要做的不是设计 mailto 根据 RFC 2368

What you're looking to do is not part of the design of the mailto anchor href, according to RFC 2368:


特殊的hnamebody表示相关的hvalue是消息的
正文。 bodyhname应该包含消息的第一个文本/纯文本部分
的内容。 mailto URL是
,主要用于生成
的短文本,实际上是自动处理的内容(例如订阅
邮件列表的邮件),而不是一般的MIME主体。 / p>

The special hname "body" indicates that the associated hvalue is the body of the message. 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.

为了做到你所描述的,你最好不要像PHP那样研究一个预处理器。

To do as you describe, you would be better off looking into a pre-processor like PHP.

这篇关于如何使用html格式的电子邮件预先填充电子邮件链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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