以下是我的批次的一部分:
start "" "C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE" /c ipm.note /m "email address&cc=email address 2;email address 3&subject=Very Important Alert&body=Line 1 of alert\nLine 2 of alert"
这只是将文字\n
插入到身体中。如何让它插入实际的换行符?
答案 0 :(得分:1)
试试这个:
"...&body=Line 1 of alert\r\nLine 2 of alert"
或者这个:
"...&body=Line 1 of alert%%0D%%0ALine 2 of alert"
答案 1 :(得分:0)
以下对我有用;但是,我必须点击发送按钮才能完成整个过程。
start "" "C:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE" /c ipm.note /m "FromEmailAddress&cc=EmailAddress1;EmailAddress1&subject=Very Important Alert&body=Line 1 of alert%%0D%%0ALine 2 of alert"