启动 Outlook 以通过 Outlook 的命令行开关撰写带有主题和附件的邮件 [英] Launch Outlook to compose a message with subject and attachment by Outlook's command line switches

查看:14
本文介绍了启动 Outlook 以通过 Outlook 的命令行开关撰写带有主题和附件的邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下 Outlook 的命令适用于 Outlook 2010:

The following Outlook's command works well with Outlook 2010:

outlook.exe /c ipm.note /m "&subject=abc" /a "c:attach.txt"

但它不适用于 Outlook 2007 和 2003.奇怪的是以下命令适用于 Outlook 2007 和 2003:

But it does not work with Outlook 2007 and 2003. The strange are following commands work well with Outlook 2007 and 2003:

outlook.exe /c ipm.note /m "&subject=abc"
outlook.exe /c ipm.note /a "c:attach.txt"

如何使用一个命令行开关启动 Outlook 来为 Outlook 2010/2007/2003 撰写包含主题和附件的邮件?

How do I use one command line switch to launch Outlook to compose message with both subject and attachment for Outlook 2010/2007/2003?

推荐答案

到目前为止,我在 Outlook 2007 中发现的是,为了实现这一点,您必须意识到 /a 意味着/c IPM.note.

So far from what I've discovered with Outlook 2007 is that in order to achieve this you have to realize that /a implies /c IPM.note.

所以使用

outlook.exe /a "FileName" /m "addresses&cc=&subject=&body="

效果很好(我花了很长时间才弄清楚这一点,因为网络上的每个人似乎都坚持在执行 /m 时必须使用 /c 但没有考虑到/a 自动为您执行此操作的帐户.

Works just fine (took me forever to figure this out cause everyone on the web appears to insist that you must use /c when doing /m but not taking into account that /a does this for you automatically.

另外,我注意到在需要放置空格时使用 %20 并不完全正确,而是使用 %2 (%20> 没有 0) 就可以解决这个问题.否则你会在所有空格之后得到一堆0,这确实很奇怪.

Also, I've noticed that using %20 isn't exactly correct when needing to put spaces, instead %2 (%20 without the 0) is doing the trick there. Otherwise you'll end up with a bunch of 0's after all the spaces, very strange indeed.

这篇关于启动 Outlook 以通过 Outlook 的命令行开关撰写带有主题和附件的邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆