有什么比在Windows Live Mail,Windows Mail或Outlook Express中启动新邮件更容易? 只需点击Create Mail按钮即可。
但是,如果您喜欢从命令提示符开始新邮件,可能没有显示Windows Live Mail,Windows Mail或Outlook Express的主窗口,或者您想从其他应用程序以编程方式创建邮件,该怎么办?
两者都可以通过命令行参数完成。 您可以创建简单的消息,但也可以指定默认收件人以及默认主题和消息文本。
在Windows Live Mail,Windows Mail或Outlook Express中通过命令行创建消息
要通过Windows命令行在Windows Live Mail,Windows Mail或Outlook Express中创建新电子邮件,请执行以下操作:
- 对于Windows Live Mail:
- 键入'“C:\ Program Files \ Windows Live \ Mail \ wlmail”/ mailurl:%'。
- 对于Windows Mail:
- 键入'“C:\ Program Files \ Windows Mail \ WinMail”/ mailurl:%'。
- 对于Outlook Express:
- 键入'“C:\ Program Files \ Outlook Express \ msimn”/ mailurl:%'。
- 确保你包括内部(双),但省略外(单)引号。
- 按Enter键 。
要使用默认To: , Cc: , Bcc:, 主题和消息主体字段创建消息:
- 键入'“C:\ Program Files \ Windows Live \ Mail \ wlmail”/ mailurl:%'(Windows Live Mail)'“C:\ Program Files \ Windows Mail \ WinMail”/ mailurl:%'(Windows Mail) “C:\ Program Files \ Outlook Express \ msimn”/ mailurl:'(Outlook Express)。
- 使用mailto URL编码器构建包含所需默认值的mailto:URL。
- 对于发送至: “recipient@example.com”的邮件,默认情况下为Subject: “Hello”,而“Hi there”为正文,URL为“mailto:recipient@example.com?subject = Hello&body = Hi %20there“,例如。
- 将URL复制并粘贴到命令行,并在“mailurl:”之后立即添加。
- 在“mailto:”和默认收件人的电子邮件地址之间输入一个引号'''。
- 使用上述示例的完整命令行是使用Windows Live Mail,“C:\ Program Files \ Windows Live \ Mail \ wlmail”/mailurl:mailto:"recipient@example.com?subject=Hello&body=Hi%20其中' (再次包括内部但不包括最外面的引号)。
请注意,您不能从命令行附加文件或自动传递消息。 为此,您可以尝试使用Blat等工具。