outlook.exe из командной строки усекает основной текст - PullRequest
0 голосов
/ 28 марта 2019

Я создаю электронную почту MAPI с помощью командной строки Outlook.В нем я заполняю адрес «to» и присоединяю PDF.

команда выглядит так:

"C:\Program Files\Microsoft Office\Office14\outlook.exe" /a "C:\test\emailStu\14247.pdf" /m "test@test.com?subject=PO #14247&body=body text goes here"

Это работает, за исключением того, что мой основной текст длинный.Это длинный абзац с текстом отказа от ответственности.Я получаю отсечение после примерно 75 символов или около того.Я предполагаю, что существует ограничение на длину аргументов командной строки, а затем оно просто усекается.

Есть ли решение для этого помимо сокращения основного текста?

Основной текст

NOTICE:  This communication is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this communication is not the intended recipient or the employee or agent responsible for delivering the communication, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this email.
...