从Outlook邮件中获取文本 [英] get text from Outlook mail

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

问题描述

使用Visual Studios 2008(sp1)

Outlook 2010



看起来我的版本无法一起工作,但是这个是我想做的。我需要以编程方式浏览2010 Outlook收件箱,从邮件主题=某事的正文中提取所有文本并将其加载到数据库中。我可以获取收件箱(Recipient.Resolve())并查看

Using Visual Studios 2008 (sp1)
Outlook 2010

It looks like my versions are not capable of working together, but this is what I want to do. I need to programmaticly go through a 2010 Outlook inbox, pull all text from body where mail subject = "something" and load it in a database. I can get a hold of inbox (Recipient.Resolve()) and see the number of items in

ns.GetSharedDefaultFolder(myRecipient, Microsoft.Office.Interop.Outlook.OlDefaultFolders.olFolderInbox);



,但我似乎无法到达邮件项目的正文。我已经克服了VBA宏,它将文本填入excel,但我真的需要这样做作为后台服务。



我是在浪费时间因为版本?


, but I cant seem to get to the body of the mail item. I have already kluged VBA macro that stuffs the text into excel,, but I really need to do this as a background service.

am I wasting my time because of the versions?

推荐答案





使用交换网络API(EWS)并做任何你想做的事情。其他选项不起作用。
Hi,

Use exchange web API(EWS) and do whatever you want.Other option won't work.


这篇关于从Outlook邮件中获取文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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