我使用Visual Studio 2010中 我想寫功能,打開Outlook窗口,當用戶點擊一個按鈕,發送電子郵件編寫項目在asp.net C#。打開Outlook窗口發送電子郵件asp.net
我嘗試這樣做:
using Outlook = Microsoft.Office.Interop.Outlook;
Outlook.Application oApp = new Outlook.Application();
Outlook._MailItem oMailItem = (Outlook._MailItem)oApp.CreateItem (Outlook.OlItemType.olMailItem);
oMailItem.To = address;
// body, bcc etc...
oMailItem.Display (true);
但是編譯器說有命名空間內微軟沒有命名空間局。 其實Microsoft Office包括Outlook完全安裝在我的電腦中。
我應該包括辦公室庫到Visual Studio? 問題如何解決?
您是否試圖從網頁打開Outlook? – yogi 2012-07-31 09:06:59