I'm porting my WPF application to UWP, but some APIs are not permitted in the UWP - one of these is classic mail API (MAPI).
I've already made some successfull tests about consuming UWP APIs from Desktop Application and hoped the mail api will work as well. However, when I run the following simple code - it works when compiled in UWP project, but it does not work when run within the WPF application. I have also packaged it and installed as Windows Desktop UWP application by using the Desktop Bridge, but it does not work as well.
EmailMessage emailMessage = new EmailMessage(); emailMessage.To.Add(new EmailRecipient("firstname.lastname@example.org")); emailMessage.Body = "message body"; await EmailManager.ShowComposeNewEmailAsync(emailMessage);
When run it ends up with communicate: The request is not supported Exception from hresult (0x80070032)
The question is: Is this a known limitation? Can anyone tell whether it is general behavior and not specific to my environment?