Search code examples
c#xbapmapi

MAPI in XBAP Application


I'm building an XBAP application to sit within an iFrame, which plays media files. I have a button that I want to be able to click once and compose an email with the media files attached. All the code I have written for handling the MAPI has been testing in standard C# application and works, but in most cases won't in the XBAP.

For i have tried to the following:

  1. Written a C# class for handling the MAPI dll
  2. Written a C++ DLL for calling MAPI, and embedded it into the XBAP (extracted when used)so that it can be used when opened.

as i said, none of these method work.

Any suggestions would be greatly appreciated.


Solution

  • XBAPS have a limited set of permissions and I don't think that includes sending email.

    You'd need to create a webservice that sends emails and connect to that.