dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.74k forks source link

Email support HTML body on Windows #23968

Open formerlymisterhenson opened 3 months ago

formerlymisterhenson commented 3 months ago

Description

I would like to be able to compose mails with an HTML body, as you can do on iOS or for example using an Outlook interop MailItem (on Windows).

MAUI gives you only an Exception on Windows (EmailImplementation):

if (message != null && message.BodyFormat != EmailBodyFormat.PlainText)
                throw new FeatureNotSupportedException("Windows can only compose plain text email messages.");

Public API Changes

(none to my knowledge)

Intended Use-Case

Format the body of a mail e.g. for better readability or corporate identity stuff.

jfversluis commented 3 months ago

I don't think we will be doing this anytime soon, so if you're dependent on this you probably want to consider implementing something yourself, either for your own project or of course contribute back to .NET MAUI so everyone can benefit. I'll leave this here for now to gauge if other people need this too.

Rand-Random commented 1 week ago

I'll leave this here for now to gauge if other people need this too.

Stumbled accross this error message today.

Edit:

After writing this comment, I got a notification, which I have no idea, what the notification is trying to tell me: Image

Image