Using MAPI functions from managed code is not officially supported. Apparently, the MAPI uses its own memory management, and it crashes and burns in managed code (see here and here )
All I want to do is launch the default email client with the subject, body, and one or more attachments .
So, I was looking for MAPISendDocuments and it seems to work. But I could not get the courage to actually use the function in production code.
Has anyone used this feature? Do you have terrible stories?
PS. No, I will not shellExecute Outlook.exe with command line arguments for attachments.
SFC. Support for attachments is a requirement, so Mailto: solutions do not cut for me.
Ishmaeel Aug 07 '08 at 7:56 2008-08-07 07:56
source share