-
Notifications
You must be signed in to change notification settings - Fork 348
EmailManager
is not supported, throws exception
#3433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi, any news on that one since MAUI is now released? Need email functionality in my application and encountered this bug |
https://docs.microsoft.com/en-us/windows/uwp/launch-resume/how-to-create-and-consume-an-app-service |
MAPISendMail does that |
This is our PR to replace the UWP/WinUI APIs with MAPISendMail: dotnet/maui#10063 |
@evelynwu-msft this is part of the maui bug list :) |
I know that it's currently not working, but would |
MAPI works with WinUI 3 (at least on my OS, Windows 10 22H2) |
I tested 2 methods, with IDataObject and IDropTarget with Guid "9E56BE60-C50F-11CF-9A2C-00A0C90A90CE" which simulates Explorer Right-Click on a File + [Sent to] [Mail recipient] |
I just uploaded a test sample using MAPI + other usual methods to send mails : WinUI3_SendMail |
Thanks @castorix I'll take a look at it. |
@jfversluis As a last resort for the time being, this works in a WinUI3 app, |
Describe the bug
Depending on how you look at it I guess this might also be a feature request. In .NET MAUI we have functionality that allows users to compose an email. For UWP we could use the code underneath to compose an email programmatically and present the user with a screen in their favorite email client to send the email.
When calling this from WinUI, we are presented with an exception "The request is not supported. (0x80070032)"
I've tried exploring alternatives like using
mailto:
or resorting toMAPI
. The latter might be what this functionality is based on, but that would mean we have to add a lot of code that might already live with you.Steps to reproduce the bug
EmailManager
, see aboveExpected behavior
The functionality works as it did when running it through UWP which is: present the user with a compose email screen.
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.1.1
Windows app type
Device form factor
Desktop
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response
The text was updated successfully, but these errors were encountered: