最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

powerpoint - C# - VSTO create new Mail in "NEW" Outlook - Stack Overflow

matteradmin8PV0评论

I have a PowerPoint VSTO - I want to create a PDF of the selected slides and create an email. This worked good so fare with the Desktop Version of Outlook. Changing to the "New" Outlook, this doesn't provide such an API. The way I figured out at the moment is to create an .EML file and let it open by the default mail application - which is the "NEW" Outlook. But this has some disadvantages:

  • Signature is not automatically added
  • I have to create a temp .EML file and delete it later - I cannot just handover a memory stream to Outlook
  • Sometimes I get an error "New Outlook" cannot process the mail - and then the mail is opened in the Desktop version - but sending it puts them in the outbox of the desktop and will only be sent when the desktop version is opened

I cannot setup in my tenant an App so I can add the tenant and App ID to my code to authorize a new created mail, because this must be dynamically for individual customers.

Who has a good and stable working solution which works either for desktop or "NEW" Outlook version? Goal is to create those emails out of a PowerPoint AddIn.

Thanks for any advice.

Post a comment

comment list (0)

  1. No comments so far