We're planning to create draft Outlook 365 emails from our ASP.NET MVC C# code which is running as an Azure App. That looks relatively straightforward in the Outlook Mail REST API documentation and there's some useful info on that in this reply too .
What I'd then like to do is open that message in Outlook 365 in a new browser tab so the user can edit it before pushing send, but I can't seem to find a way to do that?
So, the process I'm trying to achieve is:
Step 3 is what I can't find a way to do, is it possible?
If I open an email in Outlook 365 the URL is generic and doesn't contain a unique ID for the message object, so I'm not sure if there's any way to get a URL that links directly to an email message?
Alternatively if they're using on prem Outlook you could create a hyperlink using mailto: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_link_mailto
I have subsequently found this which should meet your criteria:
If you need to keep the mail item after it is shown to a user you need to provide the UI in your application and use REST API for sending it. So, you will be able to refer to the item later.
As a possible workaround you may consider automating the desktop edition of Outlook installed on the machine. See C# app automates Outlook (CSAutomateOutlook) for more information.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.