exchangewebservices

ConversationId property vs ConversationIndex property in Exchange Web Services managed API

你离开我真会死。 提交于 2019-12-19 03:43:47
问题 EWS Managed API have two properties:ConversaionId and ConversationIndex What is the difference between them? I guess ConversationId is the the ConversationIndex of the first mail in the conversation which is essentially of 22 bytes, while ConversationIndex is the index of that particular reply in the conversation thread, essentially of 22 bytes + multiples of 5 bytes for each reply in the conversation. Is it like that? Also ConversationId is accessible only with Exchange Server 2010 onwards.

Can't retrieve Appointment.StartTimeZone through EWS Managed API on Exchange 2007 SP1

不羁的心 提交于 2019-12-19 03:16:18
问题 I can retrieve the Appointment.TimeZone for items with: PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...); ServiceResponseCollection<ServiceResponse> response = Exchange.LoadPropertiesForItems(items, propertiesAll); But not Appointment.StartTimeZone which returns null. Appointment.TimeZone is string and seems to be comparable to DisplayName of TimeZoneInfo objects, but unfortunately this seems to be in

Microsoft.Exchange.WebServices is not working in VS2010

白昼怎懂夜的黑 提交于 2019-12-18 14:55:11
问题 I'n using EWS ExchangeService to read emails from outlook... I've coded the in Console project and in VS2008... Everything works fine as it is.. I can read the emails. To become more familair with VS2010 I created a console project and copied the copied to VS2010 project. so I added the referene "Microsoft.Exchange.WebServices" (Version 14.2.51.0) in Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll folder. Everything works as it is, so I see the intellisence, I see the

Office 365 / EWS Authentication using OAuth

人走茶凉 提交于 2019-12-18 13:38:01
问题 I'm trying to log onto Office 365 Exchange Online using OAuth and EWS Managed API. I am able to use connect to the Office 365 Web API's (REST), so I do have a valid Token from the Active Directory Authentication Library (ADAL). Now, I'm trying to connect using EWS and TokenCredentials. The code is pretty easy, I think: public static ExchangeService ConnectToServiceWithImpersonation(string token) { var service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); if (true) { service

Access Exchange Web Services with PHP and cURL

走远了吗. 提交于 2019-12-18 11:53:50
问题 Hello, I am currently writing a client to access a Microsoft Exchange server and read contacts, appointments etc. from it. Through days of searching I've been able to connect to the EWS via PHP's Soap client and a custom HTTPS Stream wrapper. This website helped me greatly at this point. Everything worked fine on my Windows 7 machine using XAMPP Now I uploaded my project to a Debian 6.0 Squeeze development machine that has exactly the same configuration as my Windows machine regarding the web

Getting started with Exchange Web Services 2010

放肆的年华 提交于 2019-12-18 10:10:37
问题 I've been tasked with writing a SOAP web-service in .Net to be middleware between EWS2010 and an application server that previously used WebDAV to connect to Exchange. ( As I understand it, WebDAV is going away with EWS2010, so the application server will no longer be able to connect as it previously did, and it is exponentially harder to connect to EWS without WebDAV. The theory is that doing it in .Net should be easier than anything else... Right?! ) My end goal is to be able to get and

Exchange web services: why is ItemId not constant?

时光总嘲笑我的痴心妄想 提交于 2019-12-18 05:46:11
问题 I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database. I wanted to use the ItemID to make the link between this metadata and a specific email, and I have just discovered that this ItemId is not constant. For example, if the email is moved from a public folder to another, it will receive another ItemId. That means, that the link between the email and the associated metadata is lost. So, the

How to get contact list from Exchange Server?

爱⌒轻易说出口 提交于 2019-12-17 23:34:32
问题 Can anyone tell me the simplest way to get a contact list from Exchange Server? I'm using C# From what I found out, Exchange Web Services only exists for Exchange Server 2007 and beyond. That would be my first option, but I'd also like an alternative for previous versions of Exchange (WebDav or something). Directory Services is not an option. 回答1: This is how to get the contact list from your contacts list in exchange using EWS. I'm not sure how to get contacts from the global list yet, only

Wrong mailbox items being retrieved using Exchange Web Services managed API in C#

别说谁变了你拦得住时间么 提交于 2019-12-17 22:50:18
问题 I'm trying to retrieve Inbox items from a specific mailbox (in which i have permissions), using Exchange Web Services managed API. I've tested the code first using my own email address via AutodiscoverUrl, and it works fine. However when i tried using the other email address, EWS still retrieves my own inbox items. Is this due to a cache or something? My code is as follows: ExchangeService ex = new ExchangeService(ExchangeVersion.Exchange2010_SP1); ex.AutodiscoverUrl("someothermailbox@company

Connection to Office 365 by EWS API

僤鯓⒐⒋嵵緔 提交于 2019-12-17 16:27:04
问题 I am using EWS API in my console application to process mailbox items and my connection script looks like ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.UseDefaultCredentials = true; service.AutodiscoverUrl("emailService@domain.com"); But i found that my email account was moved to Office 365 cloud. How should i change the authentication ? i found EWS service url service.Url = new Uri("https://outlook.office365.com/EWS/Exchange.asmx"); but i dont know