Domanda

I have found how to send parameters to the outlook.exe file to create a new message, add an address, a subject, and a body of text:

Run "C:\Program Files (x86)\Microsoft Office\Office14\outlook.exe" /c ipm.note /m emailaddress@server.com;&;subject=Subject&body=Body_Of_Text

Now I am curious if I can do the same thing, but to a .msg file. I have a .msg file that will already have the subject and address embedded in it, but I need to figure out if I can pass the body of text into the file when it's opened?

È stato utile?

Soluzione

You would be better served by creating a standalone MSG file using an MSG Library such as Redemption or purchase a commercial license for something like Mailbee.NET. Numerous other options exist, but once you have created the MSG, you can open it via Outlook using the /f parameter.

Run "C:\Program Files (x86)\Microsoft Office\Office14\outlook.exe" /f "C:\Downloads\myCustomMessage.msg"

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top