如何在点击电子邮件超链接时打开Outlook

时间:2022-11-15 09:48:36

I have a table in which one column is an email address. I need to add a hyperlink to this email address, so that clicking it opens outlook with the email address in TO: field.

我有一张表,其中一列是电子邮件地址。我需要添加一个指向此电子邮件地址的超链接,以便单击该链接打开Outlook,并在TO:字段中显示电子邮件地址。

Can anyone help?

有人可以帮忙吗?

4 个解决方案

#1


7  

Try this

 <a href="mailto:abc@abc.com?Subject=ABC&Body=Body" title="title" >Email</a>

Here ABC is Subject and email content is body.

ABC是主题,电子邮件内容是正文。

#2


3  

You can just use an href similar to the following (example tester@test.com email address used):

您可以使用类似于以下的href(使用示例tester@test.com电子邮件地址):

<a href="mailto:tester@test.com">tester@test.com</a>

When the user clicks the link, their default email client will be opened.

当用户单击该链接时,将打开其默认电子邮件客户端。

For more advanced options such as subject lines, cc, bcc, etc, see these links: link 1 link 2 link 3. Normally mailto is a bit of a red flag for spammers, so if this is a public website then consider a link to a form with a capcha instead.

对于更高级的选项,如主题行,cc,密送等,请参阅以下链接:链接1链接2链接3.通常mailto对垃圾邮件发送者来说有点红旗,所以如果这是一个公共网站,那么考虑一个链接到一个带有capcha的表单。

EDIT:

Try clicking Send Mail at this link and let us know what happens. This will indicate if the problem is with the markup or the system.

尝试点击此链接发送邮件,告诉我们发生了什么。这将指示问题是与标记还是系统有关。

You might also want to make sure that there is a default mail program assigned for that computer. You didn't indicate OS, but if you are using Windows 8 then follow this link and set Outlook as the default. Otherwise, do the equivalent for your OS.

您可能还需要确保为该计算机分配了默认邮件程序。您没有指示操作系统,但如果您使用的是Windows 8,请按照此链接并将Outlook设置为默认值。否则,为您的操作系统执行等效操作。

If all else fails try re-installing Outlook.

如果其他所有方法都失败,请尝试重新安装Outlook

#3


1  

just type

mailto:tester@test.com

in your browser, and see whats happeing

在您的浏览器中,看看发生了什么

#4


0  

Besides set the hyperlink href property "mailto:aaa@aa.com?Subject=...", you can also create a form with action "aaa@aa.com". You can add form elements with name "subject" and other email elements. The form data will be submit to the mail client when the form is submitted.

除了设置超链接href属性“mailto:aaa@aa.com?Subject = ...”之外,您还可以创建一个包含操作“aaa@aa.com”的表单。您可以添加名称为“subject”的表单元素和其他电子邮件元素。表单数据将在提交表单时提交给邮件客户端。

#1


7  

Try this

 <a href="mailto:abc@abc.com?Subject=ABC&Body=Body" title="title" >Email</a>

Here ABC is Subject and email content is body.

ABC是主题,电子邮件内容是正文。

#2


3  

You can just use an href similar to the following (example tester@test.com email address used):

您可以使用类似于以下的href(使用示例tester@test.com电子邮件地址):

<a href="mailto:tester@test.com">tester@test.com</a>

When the user clicks the link, their default email client will be opened.

当用户单击该链接时,将打开其默认电子邮件客户端。

For more advanced options such as subject lines, cc, bcc, etc, see these links: link 1 link 2 link 3. Normally mailto is a bit of a red flag for spammers, so if this is a public website then consider a link to a form with a capcha instead.

对于更高级的选项,如主题行,cc,密送等,请参阅以下链接:链接1链接2链接3.通常mailto对垃圾邮件发送者来说有点红旗,所以如果这是一个公共网站,那么考虑一个链接到一个带有capcha的表单。

EDIT:

Try clicking Send Mail at this link and let us know what happens. This will indicate if the problem is with the markup or the system.

尝试点击此链接发送邮件,告诉我们发生了什么。这将指示问题是与标记还是系统有关。

You might also want to make sure that there is a default mail program assigned for that computer. You didn't indicate OS, but if you are using Windows 8 then follow this link and set Outlook as the default. Otherwise, do the equivalent for your OS.

您可能还需要确保为该计算机分配了默认邮件程序。您没有指示操作系统,但如果您使用的是Windows 8,请按照此链接并将Outlook设置为默认值。否则,为您的操作系统执行等效操作。

If all else fails try re-installing Outlook.

如果其他所有方法都失败,请尝试重新安装Outlook

#3


1  

just type

mailto:tester@test.com

in your browser, and see whats happeing

在您的浏览器中,看看发生了什么

#4


0  

Besides set the hyperlink href property "mailto:aaa@aa.com?Subject=...", you can also create a form with action "aaa@aa.com". You can add form elements with name "subject" and other email elements. The form data will be submit to the mail client when the form is submitted.

除了设置超链接href属性“mailto:aaa@aa.com?Subject = ...”之外,您还可以创建一个包含操作“aaa@aa.com”的表单。您可以添加名称为“subject”的表单元素和其他电子邮件元素。表单数据将在提交表单时提交给邮件客户端。