[英]Can I create a link in an email to automatically send an email populated with specific information from the original email?
I would like to create a link inside a "noreply@...com" email sent to a client with specific information, for the client to be able to click and automatically generate an email (mailto) using the information from the original noreply email.我想在发送给客户的带有特定信息的“noreply@...com”电子邮件中创建一个链接,以便客户能够单击并使用原始 noreply 电子邮件中的信息自动生成电子邮件 (mailto) .
From: noreply@example.com to: client1@gmail.com从:noreply@example.com 到:client1@gmail.com
Subject: Thank you for participating in yesterdays event!主题:感谢您参加昨天的活动!
Body: Thank you CLIENTNAME for participating in yesterdays EVENTNAME event!正文:感谢 CLIENTNAME 参加昨天的 EVENTNAME 活动! If you would like to confirm you attended click HERE.如果你想确认你参加了点击这里。
I would to add a link in the HERE word to generate an autopopulated email that says: "Hi my name is CLIENTNAME, and i attended your EVENTNAME event"我想在 HERE 单词中添加一个链接以生成一封自动填充的电子邮件,上面写着:“嗨,我的名字是 CLIENTNAME,我参加了你的 EVENTNAME 活动”
**This is an example and I know it does nothing productive. **这是一个例子,我知道它没有任何成效。
Yes you can create your link with a subject
and body
parameter.是的,您可以使用subject
和body
参数创建链接。
<a href="mailto:user@example.com?subject=Hello&body=This is my message">Email Us!</a>
You will need to escape any characters that might break the link... eg double quotes "
您将需要转义任何可能破坏链接的字符......例如双引号"
The mailto protocol is described in depth on MSDN pages. mailto 协议在 MSDN 页面上进行了深入描述。 You can create a link in the email which can open a client's e-mail system and begins a new email message with a prepopulated fields.您可以在电子邮件中创建一个链接,该链接可以打开客户的电子邮件系统并开始一封带有预填充字段的新电子邮件。
One or more valid e-mail addresses separated by a semicolon.一个或多个以分号分隔的有效电子邮件地址。 You must use Internet-safe characters, such as %20 for the space character.您必须使用 Internet 安全字符,例如 %20 作为空格字符。
Optional.可选的。 One or more name-value pairs.一个或多个名称-值对。 The first pair should be prefixed by a "?"第一对应以“?”为前缀and any additional pairs should be prefixed by a "&".并且任何其他对都应以“&”为前缀。 The name can be one of the following strings.名称可以是以下字符串之一。
subject主题
Text to appear in the subject line of the message.显示在邮件主题行中的文本。
body身体
Text to appear in the body of the message.显示在邮件正文中的文本。
CC抄送
Addresses to be included in the "cc" (carbon copy) section of the message.邮件“抄送”(抄送)部分中包含的地址。
BCC密件抄送
Addresses to be included in the "bcc" (blind carbon copy) section of the message.要包含在邮件“密件抄送”(密件抄送)部分的地址。
<a href="mailto:user@example.com?
subject=MessageTitle&
body=Message Content">
Contact Us</a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.