从Exchange 2007收到电子邮件 [英] getting emails from exchange 2007

查看:83
本文介绍了从Exchange 2007收到电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我被要求创建一个从Exchange 2007邮箱中读取消息的应用程序,即(getmail@marcgarraway.co.uk)

一旦我收到消息,我需要阅读主题行的内容,如果它包含一个短语,即"test",对数据库做一些事情。

可以告诉我如何连接邮箱并从邮箱收到电子邮件吗?

提前致谢

Marc Garraway

推荐答案

Marc,

你可以阅读使用代码的邮件内容: http://msdn.microsoft.com/en-us/library/ bb508824.aspx 。但是你需要实现主题的自定义检查并检查"测试"。上面代码片段中的短语。此示例包含如何连接到邮箱,从邮箱中读取邮件以及阅读其内容的方式。

希望这会有所帮助。
Marc,

You can read the contents of the mail using the code: http://msdn.microsoft.com/en-us/library/bb508824.aspx. But you need to implement the custom checking of subjectline and checking the "test" phrase in the above code snippet. This sample contains how you can connect to a mailbox, read a mail from the mailbox and read its contents.

Hope this helps.


这篇关于从Exchange 2007收到电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆