inserting outlook appointment using c#, asp.net

前端 未结 1 1940
情话喂你
情话喂你 2021-01-14 19:37

Im looking to insert an appointment in a users calendar, I can easliy insert in my own using Microsoft.Office.Interop.Outlook.Application (below), then add the user as a rec

1条回答
  •  不思量自难忘°
    2021-01-14 20:13

    You cannot (or should not) use the Outlook API from an ASP.NET application. Instead Exchange Server provides a Web Services SDK that allows you to interact with the Exchange Server. The documentation has a sample of how to create appointments in a user's mailbox.

    You may have to delegate access to the user account used to execute the ASP.NET request to succesfully be able to interact with the Exchange Server API.

    EWS was first introduced in Exchange 2007. For older versions of Exchange you can use Collaboration Data Objects (CDO). The Exchange 2003 SDK contains documentation on how to create appointments and meeting requests.

    0 讨论(0)
提交回复
热议问题