exchangewebservices

read email using exchange web services

与世无争的帅哥 提交于 2020-01-11 02:07:06
问题 This is my scenario: I have to read email from exchange 2010 sp2 accounts. I have to use Exchange Web Services, POP3 and IMAP are blocked. I have to test my app in an environment where people can access their accounts through a web browser only in the intranet. I can't debug my app directly to this intranet. I have this snippet to access an account: private void Dowork() { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); string dominio = "domain"; string

In EWS, how to get message's both plain-text and HTML bodies as strings keeping the original character encoding

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-07 07:41:32
问题 I'm working with Exchange 2010 (not Exchange 2013 which lets the caller request both plain-text and HTML bodies directly). To get HTML body, I'm using something like: ExtendedPropertyDefinition PR_BODY_HTML = new ExtendedPropertyDefinition(0x1013, MapiPropertyType.Binary); ExtendedPropertyDefinition PR_INTERNET_CPID = new ExtendedPropertyDefinition(0x3FDE, MapiPropertyType.Long); PropertySet properties = new PropertySet(BasePropertySet.FirstClassProperties); properties.RequestedBodyType =

Exchange Online push notification subscription unable to perpetuate

情到浓时终转凉″ 提交于 2020-01-06 19:35:58
问题 I have inherited from a colleague who left a system module that integrates with Exchange Online in Office 365. Essentially what this module does is interact with with the remote Exchange service via EWS Managed API; subscribe for push notifications on changes in a user's calendar. Change events do get posted to our web service and that is fine. And based on the frequency parameter we defined, the status checks messages also get posted on expected intervals, as per description about the

Exchange Online push notification subscription unable to perpetuate

荒凉一梦 提交于 2020-01-06 19:34:24
问题 I have inherited from a colleague who left a system module that integrates with Exchange Online in Office 365. Essentially what this module does is interact with with the remote Exchange service via EWS Managed API; subscribe for push notifications on changes in a user's calendar. Change events do get posted to our web service and that is fine. And based on the frequency parameter we defined, the status checks messages also get posted on expected intervals, as per description about the

EWS API Search Filter does not return all information

浪尽此生 提交于 2020-01-06 18:30:47
问题 I have the following scenario: I check a mailbox to which emails with some relevant information are sent to to get the information from it. I use a lot of search filters to find the specific email and to get the correct one: var collection = new SearchFilter.SearchFilterCollection(LogicalOperator.And); collection.Add(new SearchFilter.ContainsSubstring(ItemSchema.Body, "text1", ContainmentMode.Substring, ComparisonMode.Exact)); collection.Add(new SearchFilter.ContainsSubstring(ItemSchema.Body,

Retrieving an access token with admin consent : how access the data of all the users of the organization?

一笑奈何 提交于 2020-01-06 08:49:17
问题 In my third-party web application of Office 365, I want to have access to the contacts, events and emails of all the users from the organizations who installed my app. The thing is I don't want that all these users have to grant me access, I just want one admin of the org to grant access for my app and then be able to retrieve the data I need for all the users. To test for one organization, I logged in as the admin and proceed to the Oauth2 authentication to retrieve the access token and in

editing an occurence in a recurrence event in outlook calendar

末鹿安然 提交于 2020-01-06 06:54:29
问题 I have edited only one event in a recurrence series. While I send a get request with delta token I will get the seriesmaster content, and the edited occurence with type exception My question is how do I patch these kind of events.what is the attribute to add the exception date 回答1: In order to create an exception, you would need to modify (via PATCH) the instance you want to become the exception. If you do: GET /me/events/{event-id-of-master}/instances?startDateTime={start}&endDateTime={end}

Invalid Named Property

你说的曾经没有我的故事 提交于 2020-01-06 05:56:48
问题 We call the microsoft exchange to set the extended property which in our case is an unique guid microsoft.exchange.webservices.data.core.exception.service.remote.ServiceResponseException: An internal server error occurred. The operation failed., Invalid named property Its been working great until now when some of our users are facing the above issue .... val uId = getUniqueId(); val emailExtendedPropDef = new ExtendedPropertyDefinition(uId,"uniqueId", MapiPropertyType.String) try { email

How to set/access outlook DoNotForward property in Microsoft exchange service

给你一囗甜甜゛ 提交于 2020-01-06 03:45:31
问题 Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("abc", "xyz", "bbb"); service.AutodiscoverUrl("xyz@abc.com",

How to set/access outlook DoNotForward property in Microsoft exchange service

拜拜、爱过 提交于 2020-01-06 03:45:25
问题 Option I want to use when sending the email is accessed in outlook. Permission option I need to set Do not forward permission of EmailMessage object in Microsoft exchange service code but I am not able to set it to true. ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("abc", "xyz", "bbb"); service.AutodiscoverUrl("xyz@abc.com",