如何从 MS Exchange 发送接收邮件
如何从自定义 C# 应用程序创建 MS Exchange 并发送/接收邮件?
我假设这不是直接的 可以使用标准框架 邮件课程。
如果我可以说这需要与 MS Exchange 2003 和 2007 一起使用,我有哪些选择?
理想情况下,我不想购买第三方组件,因此如果使用 c# 可以实现这一点,那么创建可以发送新邮件或将邮件接收到自定义应用程序的库的步骤是什么。
C# 应用程序将位于本地,就像与 Exchange 服务器位于同一网络中一样。
How can I , from a custom c# application, create and send/receive mails from MS Exchange?
I am assuming this is not directly
possible with the standard framework
mail classes.
If I could say that this needs to work with MS Exchange 2003 and 2007 what are my options?
Ideally I dont want to buy a third party component so if this is possible with c# then what are the steps for creating a library that can send a new mail or receive a mail into a custom application.
The C# app will be local, as in the same network as the Exchange server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是否尝试过使用内置的 .Net 邮件程序集?
如果创建 SmtpClient client = new SmtpClient("my-email-server"),smtp.Send 不起作用吗?
----- 使用代码
如果机器有邮件帐户设置,则不会,只要您设置 DefaultNetworkCredentials,它就应该使用系统中的邮件帐户:
不过您可以创建一些并使用它们:
Have you tried using the built-in .Net mail assemblies?
If you create an SmtpClient client = new SmtpClient("my-email-server"), does smtp.Send not work?
----- with code
If the machine has a mail account setup then no, it should use the ones from the system so long as you set DefaultNetworkCredentials:
You can create some though and use those instead:
您是否将以下代码放入您的
web.config
文件中?Have you put the following code in your
web.config
file?有许多途径可供查看:MAPI、CDO、第 3 方库等。
您正在使用的 Exchange 版本是什么,因为我认为 2007 年有一些 Web 服务可供您使用 OWA 插入的服务。
There's a number of routes to look at: MAPI, CDO, 3rd party libraries etc.
What version of Exchange is it you're working with as I think 2007 has some web services that you can use that OWA plugs in to.