从cmd中打开Outlook.exe,正文文本包含换行符 [英] Open Outlook.exe from cmd with body text containing newlines

查看:1503
本文介绍了从cmd中打开Outlook.exe,正文文本包含换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从cmd打开Microsoft Outlook 2010,但我想电子邮件的正文包含换行符/换行符。

I'm trying to open Microsoft Outlook 2010 from cmd, but I'd like the body of the email to contain line breaks/newlines.

"C:\Programs\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note /m "myemail@email.com&cc=seconda.address@email.com&subject=Test&body=Line 1 \r\n Line 2"

正确的电子邮件地址,主题,但我不能弄清楚如何自动插入换行。

With that outlook 2010 opens correctly with email addresses, the subject but i can't figure out how to automatically insert a newline.

我尝试了/ 0,

,,\r\\\
,\r\r,$ _,但仍然将其写为简单文本。

I've tried with /0,
,
, , \r\n, \r\r, $_ but it still write it as simple text.

我知道%20字符puts是一个空格,但我需要换行。

I know that %20 character puts is a whitespace, but i need a newline.

这是可能吗?

推荐答案

尝试:

"C:\Programs\Microsoft Office\Office14\OUTLOOK.EXE" /c ipm.note /m "myemail@email.com&cc=seconda.address@email.com&subject=Test&body=Line 1 %0D%0ALine 2"

%0D%0A 替换 \r\\\
,还可以删除下一个在添加%0D%0A 之后删除空格,因此类似%0D%0A 第2行

Replace the \r\n with %0D%0A you can also remove the space on the next line by removing space after adding %0D%0A so something like this %0D%0ALine 2

下面是一个链接,以阅读和理解它更好。

Below is a link to read up and understand it better. It might come in handy for other possible questions you might have in future

WIKIPEDIA

这篇关于从cmd中打开Outlook.exe,正文文本包含换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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