简体   繁体   English

我可以在电子邮件中创建链接以自动发送包含原始电子邮件中特定信息的电子邮件吗?

[英]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) .

Example:例子:

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.是的,您可以使用subjectbody参数创建链接。

 <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.您可以在电子邮件中创建一个链接,该链接可以打开客户的电子邮件系统并开始一封带有预填充字段的新电子邮件。

sAddress s地址

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 作为空格字符。

sHeaders标头

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&amp;
    body=Message Content">
    Contact Us</a>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我可以通过mailto:链接创建电子邮件吗?该链接预先填充了图片? - Can I create a email from a mailto: link which is prepopulated with an image? 从JS创建电子邮件链接 - create email link from JS 我可以让链接自动下载电子邮件中的文件吗? - Can I have a link automatically download a file in an email? 如何发送带有html锚链接的电子邮件? - How can i send email with html anchor link? 我如何从html页面的两种形式中提取信息,然后将其发送到我的电子邮件(使用php) - how can i extract information from two forms in a html page then send it to my email (using php) 想要创建一个链接,我可以发送将打开他们的 email 应用程序的人,其中包含预先编写的消息(不是我自己的网页或应用程序上的链接) - Want to create a link I can send people that will open their email app with a pre-written message (NOT A LINK ON MY OWN WEBPAGE OR APP) 我如何使用cakephp 3电子邮件模板在电子邮件中发送图像? - How i can send image in email with cakephp 3 email template? 如何将带有样式的 html 电子邮件发送到雅虎电子邮件应用程序? - How can I send html email with style to yahoo email app? 如何创建从 php 发送的响应式电子邮件? - How create responsive email that send from php? 从仪表板 wordpress 创建发送 email 的表单 - Create a form for Send email from dashboard wordpress
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM