Html mailto 的语法

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6792855/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 09:42:07  来源:igfitidea点击:

Syntax for mailto

htmlemail

提问by kasdega

When using a mailto link like this:

使用这样的 mailto 链接时:

<A HREF="mailto:[email protected]" TITLE="Subject">Link Text</A>

is it possible to set the FROM: address?

是否可以设置 FROM: 地址?

UPDATE: I forgot to mention that I have a captive audience who will ALL be using IE8 and Outlook.

更新:我忘了提到我有一个俘虏观众,他们都将使用 IE8 和 Outlook。

采纳答案by Jamie Dixon

The short answer is no.

最简洁的答案是不。

mailtowill open your prefered email client. The from address will be set up in your mail client.

mailto将打开您首选的电子邮件客户端。发件人地址将在您的邮件客户端中设置。

Given that your users will all be using Outlook, their email address will already be the from address.

鉴于您的用户都将使用 Outlook,他们的电子邮件地址已经是发件人地址。

回答by bogatyrjov

It isn't, unfortunately - You can only specify the subject, cc, bcc and the body of the message. Check the full syntax : http://www.ianr.unl.edu/internet/mailto.htmlupdated

不幸的是,它不是 - 您只能指定邮件的主题、抄送、密送和正文。检查完整语法:http: //www.ianr.unl.edu/internet/mailto.html更新

For example,

例如,

<a href="mailto:[email protected]?Subject=Challenge yourself">Send</a>

回答by Tom

The from address is always the address that is in the email client that sends the message, so no.

发件人地址始终是发送邮件的电子邮件客户端中的地址,所以不是。

回答by username

I think you're looking for the reply-to address, which is what appearsto the recipient as the sender in 99% of email clients:

我认为你正在寻找的回复地址,这是什么似乎给收件人的电子邮件客户端的99%,发件人:

mailto:[email protected]

Fancier example here:

更有趣的例子在这里:

mailto:[email protected][email protected]&subject=it%20verks!&message=get%20to%20the%20chopper!