I'm implementing a "Print and Email" function in my application, and I launch the default email client using MAPISendMail, with a file attachment pre-selected. I want to be able to automatically fill the "To" field, as well, but I couldn't find an option for that in the MapiMessage structure. There are options for subject, body, attachments, but not for the "To" field.
Is there any way to fill the "To" field using MAPISendMail?
I found the answer, there is a recipient field in the MapiMessage structure. Here some sample code I found at http://www.experts-exchange.com/Programming/Microsoft_Development/A_1820-Sending-Email-with-MAPI.html that illustrates how to fill the recipient field: