exchangewebservices

EWS Managed API breaks Appointment HTML message body on update

☆樱花仙子☆ 提交于 2019-12-19 16:54:35
问题 I'm using EWS Java 1.2, although 2.0 in C# shows the exact same issues, and Exchange 2010 SP3, so a particular bug in SP2 prior to rollup 3 regarding message bodies is not the problem. Long story short: EWS + Exchange = pain. Using EWS in Exchange, you can create an Appointment. You can specify that the message body of the Appointment be HTML and give it a bunch of HTML to go with it. This will do some kind of HTML -> RTF conversion that wrecks the HTML when you view it in an Outlook desktop

Download attachment from Exchange using Exchange Web Services

十年热恋 提交于 2019-12-19 15:27:54
问题 I am trying to use the following code to connect and download an attachment from email in an inbox using C# and Exchange Web Services but I am getting a 'System.ArgumentOutOfRangeException' error and I cant see why. I have googled for an answer but i cant find one or the answers I find are for very old versions of EWS. I know that the rest of the code generally works as I can access other information relating to the email, just not access the attachment. Cany anyone show me the error of my

How to get Out of Office for another mailbox

只愿长相守 提交于 2019-12-19 11:50:36
问题 I'm trying to get the Out of Office settings for a given mailbox by using EWS/EWS Managed API 2.0. The setup is the following; a single "service account/mailbox" reads other mailbox calendars and Out of Office settings. The calendar part is easy using the EWS Managed API, but I can't seem to figure out how to get the Out of Office settings by using the API. The API has a method called GetUserOofSettings(string smtpAddress) but this returns access denied if the caller the given smtpAddress do

401 Unauthorized while subscribing to push notifications with Exchange service and OAuth

有些话、适合烂在心里 提交于 2019-12-19 10:55:55
问题 I am trying to access EWS managed API (subscribe to push notifications) with oauth as below: var authenticationTask = await authenticationContext.AcquireTokenAsync("https://outlook.office365.com", new ClientCredential(clientID, clientSecret)); string targetSmtp = "user123@mydomain.onmicrosoft.com"; ExchangeService exchangeService = new ExchangeService(ExchangeVersion.Exchange2013); exchangeService.Url = someURL; exchangeService.TraceEnabled = true; exchangeService.TraceFlags = TraceFlags.All;

The account does not have permission to impersonate the requested user

半腔热情 提交于 2019-12-19 10:25:16
问题 I am getting this error while try to accessin the resource mailbox. pls any one help me on this . I am new to EWS. I am able to access the resource mailbox through OWA(Outlook web app). But i am not owner of this mailbox as it is shared mailbox. my code: ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService newExchangeService = new ExchangeService (ExchangeVersion.Exchange2007_SP1); newExchangeService.Credentials = new NetworkCredential

The account does not have permission to impersonate the requested user

萝らか妹 提交于 2019-12-19 10:25:12
问题 I am getting this error while try to accessin the resource mailbox. pls any one help me on this . I am new to EWS. I am able to access the resource mailbox through OWA(Outlook web app). But i am not owner of this mailbox as it is shared mailbox. my code: ServicePointManager.ServerCertificateValidationCallback = CertificateValidationCallBack; ExchangeService newExchangeService = new ExchangeService (ExchangeVersion.Exchange2007_SP1); newExchangeService.Credentials = new NetworkCredential

Access Outlook user properties from EWS

邮差的信 提交于 2019-12-19 10:18:28
问题 I'm trying to create an application that use the EWS api to access contacts. I need to look at one of the outlook user properties in this process but I cant see how to get it at using EWS. At the moment ive just tried... service.Url = new Uri("https://url/ews/Exchange.asmx"); service.Credentials = new WebCredentials("credentials"); var results = service.FindItems(folderId, new ItemView(100)); foreach (var item in results) { Contact contact = item as Contact; foreach (var prop in contact

Help with Exchange 2010 EWS (API) and/or PHP's NuSOAP library?

女生的网名这么多〃 提交于 2019-12-19 10:04:12
问题 Just to be clear before continuing: using PHP's built-in SOAP class is unfortunately not an option here (production server's PHP is not built with it, and won't be). I'm trying to use EWS to allow me to authenticate users for a completely external server application. LDAP authentication has been disallowed. I have verified my EWS wsdl is correct via http://www.testexchangeconnectivity.com/, a Microsoft autodiscover tool. The contents of the WSDL can be found here: http://pastebin.org/214070

How to get the recurring master of all recurring series that have one or more occurrences that start within in a date range using FindItems()?

时光怂恿深爱的人放手 提交于 2019-12-19 09:46:47
问题 Background: I am using the Microsoft Exchange Web Services Managed API 2.0. I am attempting to search a Calendar folder and return all appointments items that meet the following criteria: Has a sensitivity of Normal Has a category of "Test" Starts in a specific date range I have come to the conclusion that due to the fact that I need to filter on more than just the date I need to use FindItems() instead of FindAppoinments().(Please correct me if that is wrong.) The downside of FindItems() is

Getting Exchange Appointments by ICalUid?

懵懂的女人 提交于 2019-12-19 05:37:30
问题 So I'm creating Exchange (2007) Appointments with a given ICalUid: var app = new Appointment(svc); app.ICalUid = id; app.Subject = "Test Appointment"; app.Recurrence = new Recurrence.DailyPattern(DateTime.Now, 3); app.RequiredAttendees.Add("mstum@example.com"); app.AllowNewTimeProposal = false; app.Body = new MessageBody(BodyType.HTML, "This is a <b>Test!</b>"); app.Save(); Later on, I would like to update that appointment, at which point I need to find it through the ICalUid. However, there