我使用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