2014年4月19日 星期六

[Exchange Web Services Managed API[C#][E-mail] 存取公司內部Exchange Server 內相關資訊

一段時間沒有發文章,每天都在加班,來記錄一下最近公司的需求。

Request:

原本系統的報表寄送是請User填上收件者的Email,但是最近新增的另外一支報表是要給老闆使用的,總不能讓老闆一直複製貼上,感覺很沒有Sence,所以花了一個晚上的時間去研究了Exchange Web Services Managed API,讓老闆有感覺在使用Outlook的 自動檢查名稱功能,廢話不多說,來看程式吧!

Step 1.


先去Microsoft下載API元件









Step 2.
Install EwsManagedApi.MSI,You can Get It!


Step 3.

將.dll 加入致你的專案內












Setp 4.

直接來看程式吧!

using Microsoft.Exchange.WebServices.Data;












Step 5.
and You can get it















If this is helpful to you,You can give me +1!

If You have a Problems ,You can give me a message or Send email to me!







沒有留言:

張貼留言