Questions tagged [ews-managed-api]

Exchange Web Services (EWS) API that can be used to access Exchange resources.

Microsoft Exchange Server 2007 introduces Exchange Web Services (EWS), a API that can be used to access Exchange resources. EWS is a SOAP-based XML Web service that can be accessed remotely from any operating system and any language that can send requests over HTTPS.

Creating a new folder in the Inbox

Folder folder = new Folder(service); folder.DisplayName = "My new folder"; folder.Save(WellKnownFolderName.Inbox);

Creating and saving a draft e-mail message

EmailMessage message = new EmailMessage(service); message.Subject = "Hello from the EWS Managed API"; message.Body = "Now that's easy!"; message.ToRecipients.Add("someone@fabrikam.com"); message.Save();

370 questions
5
votes
1 answer

Are extra installs needed to access Managed EWS on an Exchange 2010 server?

Does the system administrator need to install anything extra to get EWS Managed API working for clients on Exchange 2010? At the moment I am getting problems just using AutoDiscover via the managed API so I'm beginning to think the server has been…
5
votes
1 answer

EWS Managed API : Reply to a message while adding an internet header

I am building a small client that can automatically reply to some emails. I would like to add a custom internet header to these replies. What I tried to do is to set the extended property to the email I receive, and use the EmailMessage.Reply…
afewcc
  • 1,077
  • 3
  • 9
  • 20
5
votes
1 answer

EWS: copy items between mailboxes/accounts

If my app has the credentials of two users, user A and user B, whose accounts/mailboxes are on the same Exchange server, is there a way that I can copy an item (e.g. an email) from a folder in user A's mailbox to one in user B's, and keep the…
sasfrog
  • 2,410
  • 1
  • 17
  • 28
4
votes
1 answer

How can I remove a contact CompleteName.Title with EWS managed api v1.1?

Using EWS managed api v1.1, I can successfully save/set the contact "Title" or honorific (if you prefer) to a non-empty value, but I can't figure out how to remove or set it back to an empty string/null. I've tried to set an empty value and I've…
Aaron Wagner
  • 5,739
  • 1
  • 31
  • 38
4
votes
3 answers

Why does EWS Managed API SyncFolderItems not return recurring appointments

I'm using the managed API of EWS to synchronize a scheduling application with exchange calendars. I get all normal meetings fine, but I am not getting any repeating/recurring appointments. My code follows: itemChangeCollection =…
4
votes
1 answer

Get list of on-behalf of users permission - EWS Manage API

I am trying to get list of email address which user can send email on behalf of. This is an application which sends email on behalf of users, so app does not have user credential. Instead, app is registered in Azure AD and has full permission to…
huMpty duMpty
  • 14,346
  • 14
  • 60
  • 99
4
votes
1 answer

How to set the contact title using Exchange Web Services Managed API

I'm trying to create a new contact using the EWS API. I can set all the values i needed except the contact title property. I tried the code: oContact = new Contact(oService); oContact.GivenName = "John"; oContact.Surname =…
Volkmar Rigo
  • 1,158
  • 18
  • 32
4
votes
2 answers

EWS - List calendar appointments fails when trying to load attendees

I am trying to list some events using the C# EWS 2.0 library. It is using the following code: public IEnumerable ListEvents(CalendarFolder folder, DateTime? startDate, DateTime? endDate) { var items = new…
synic
  • 26,359
  • 20
  • 111
  • 149
4
votes
4 answers

Refresh access token when talking to Exchange Online via EWS Managed API

I am writing an application to communicate with Exchange Online using the EWS Managed API and authenticate my application via OAuth 2.0 utilizing ADAL library. The access token expires after 60 minutes. After which I need to refresh the access…
Jackson
  • 1,675
  • 1
  • 13
  • 15
4
votes
1 answer

Office 365 EWS does not return X-BackendOverrideCookie

Office 365 does not return the X-BackendOverrideCookie in response headers. I set the X-AnchorMailbox and X-PreferServerAffinity in the request headers properly. This does not trigger X-BackendOverrideCookie to be returned, as it says in MSDN. Why…
4
votes
2 answers

Does value of ICalRecurrenceId ever change for each instance of recurring meeting

I want to import all the meetings for a number of users into a database. I'm using the EWS Managed API and C# When I import meetings from each mailbox, I might encounter the same meeting multiple times if each of the users have been invited to that…
Kevin Brady
  • 1,684
  • 17
  • 30
4
votes
0 answers

EWS Managed API: Only one usage of each socket address (protocol/network address/port) is normally permitted

We're developing software that allows our custom scheduling application (master role) to synchronize with Microsoft Exchange Server 2010/2007 (slave role). Our solution is based on .NET 4.0, the EWS Managed API and Parallel Fx, and of course our own…
Yves Reynhout
  • 2,982
  • 17
  • 23
4
votes
3 answers

Getting an attachment using EWS and C# failing with ServiceMethodException

So i am currently building an application that allows a group of users to view all emails from a certain email address. This all works correctly. The problem I am encountering comes when i am trying to get the attachments. I am relatively new to…
Major
  • 146
  • 10
4
votes
2 answers

EWS - ServerBusyException?

After our company upgraded from Exchange 2010 to Exchange 2013, I found a really strange quirk. I'm using the EWS managed API to create a streaming subscription to some public folders. I have some older windows services still running that are…
Bill Sambrone
  • 4,334
  • 4
  • 48
  • 70
4
votes
1 answer

Send to e-mail with special characters using Exchange Web Services

When attempting to send an e-mail using Exchange Web Services Managed API against Exchange Server 2010 SP1, a ServiceException is thrown with ErrorCode ErrorInvalidRecipients when the recipient e-mail address (left of @) contains, in this case,…