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

Paul Ryan 326 Reputation points
2023-11-15T21:35:32.9566667+00:00

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

Outlook
Outlook
A family of Microsoft email and calendar products.
4,182 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.
4,078 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.