Using UWP with C# how can you send an email with attachments using outlook

Paul Ryan 316 Reputation points

Can you add the attachments, I do not want the end user to select the attachments.

The docs says (Dated 10/20/2022)

Attachments that you add to an email by using the EmailAttachment class will appear only in the Mail app. If users have any other mail program configured as their default mail program, the compose window will appear without the attachment. This is a known issue.

Reason I want to use Outlook

"Beginning in 2024, new Windows 11 devices will be shipped with the new Outlook for Windows as the default mailbox application"

thank you

A family of Microsoft email and calendar products.
2,187 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,045 questions
{count} votes