从网页打开email客户端

mailto Protocol

--------------------------------------------------------------------------------

Opens a client's e-mail system.

Syntax

mailto:sAddress[sHeaders]
Tokens

sAddress
One or more valid e-mail addresses separated by a semicolon. You must use Internet-safe characters. Use %20 for the space character.
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.
Remarks

For more information on the mailto protocol, see RFC 2368 .

Available as of Microsoft® Internet Explorer 3.0 or later.

Examples

The following example shows a mailto URL that will prepare an e-mail message when typed into the Internet Explorer address bar.

mailto:mtscf@microsoft.com?subject=Feedback&body=The InetSDK Site Is Superlative"
The following example shows a link that will prepare an e-mail message.

<A HREF="mailto:mtscf@microsoft.com?
    subject=Feedback&amp;
    body=The%20InetSDK%20Site%20Is%20Superlative">
    Click here to send feedback to the InetSDK.</A>
The following example shows a link that will prepare an e-mail message with multiple lines of text in the body.

<A HREF="mailto:mtscf@microsoft.com?
    subject=Feedback&amp;
    body=The%0d%0aInetSDK%0d%0aSite%0d%0aIs%0d%0aSuperlative">
    Click here to send feedback to the InetSDK.</A>
The following example shows how to use an HTML form to create an e-mail message.

<FORM ACTION="mailto:mtscf@microsoft.com" METHOD=GET>
<INPUT NAME=subject TYPE=hidden VALUE="InetSDK%20User%20Feedback">
Enter comments about this site:<BR>
<TEXTAREA NAME=body COLS=40>
InetSDK: http://msdn.microsoft.com/workshop/
The InetSDK site is superlative!
</TEXTAREA>
<INPUT TYPE=submit VALUE="Send Feedback">
</FORM>

--------------------------------------------------------------------------------

&#169; 2003 Microsoft Corporation. All rights reserved.
 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值