中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [分享] 调用MS Office outlook 写邮件
作者:
标题: [分享] 调用MS Office outlook 写邮件 上一主题 | 下一主题
uiopuiop
中级用户





积分 400
发帖 211
注册 2007-9-30
状态 离线
『楼 主』:  [分享] 调用MS Office outlook 写邮件


start mailto:johndoe@domain.com^&subject=Hello%20World%21^&body=How%20are%20you%2C%20John%3F
exit

#############################################################
How to use command line switches to create a pre-addressed e-mail message in Outlook

http://support.microsoft.com/kb/287573

Single command-line string for a message with subject and body

NOTE: The procedures that are outlined in this section assume that the you are familiar with creating the type of objects listed in the implementation list.

In order to create a preformatted and pre-addressed e-mail message, it is necessary to build a command-line string with the following parameters:
mailto:<to email>?cc=<cc email>&bcc=<bcc
mail>&subject=<subject text>&body=<body text>
Where the following variable definitions apply:
   Variable                        Field Entry
   --------------------------------------------------------------
   <to e-mail>          e-mail address to appear in the To field
   <cc mail>            e-mail address to appear in the CC field
   <bcc mail>           e-mail address to appear in the BCC field
   <subject>            text to appear in the Subject field
   <body text>          text to appear in the Body of the message

                               

Note the position of the question mark (?) and ampersand (&) characters in the command-line syntax.

In addition to the field designations, you must use ASCII hexadecimal equivalents as variables for punctuation characters. The following variables are used to represent commonly used characters:
Space ( ) %20
Comma (,) %2C
Question Mark (?) %3F
Period (.) %2E
Exclamation Point (!) %21
Colon (:) %3A
Semicolon (;) %3B
The following is an example of a command-line that populates the To, the Subject, and the Body fields in a new e-mail message:
mailto:johndoe@domain.com&subject=Hello%20World%21&body=How%20are%20you%2C%20John%3F
This command-line yields the following information:
Recipient: johndoe@domain.com Subject: Hello World! Body: How are you, John?


Uses of the Command line String:
This command line string may be used in the following implementations:
In the Open box of Run command line.
In Properties of your desktop shortcut
In the Address Bar of Internet Explorer 4.0.
In the Subject line of an Outlook e-mail message.
In the body of an Outlook or Outlook Express e-mail message.
In the Hypertext Markup Language (HTML) code of a Web page.

[ Last edited by uiopuiop on 2009-6-13 at 10:02 ]

2009-6-13 10:00
查看资料  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: