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
3
votes
2 answers

Outlook Journal Entries using EWS / programmatically

Is there a way to get the Outlook Journal entries programmatically? I am using EWS managed api for C# for other Exchange communication but the API does not have anything to handle Journals directly. Is there a way to handle Journals using EWS? If…
Andy
  • 1,080
  • 5
  • 20
  • 35
3
votes
1 answer

EWS Managed API : Checking Responses

I'm using EWS Managed API 2.0. I'm using the Calendaring part where you can book appointments as follows : Appointment appointment = new Appointment(service); //Set properties on the appointment. appointment.Subject = "Dentist…
Morano88
  • 2,047
  • 4
  • 25
  • 44
3
votes
2 answers

What settings on Exchange do we need to check to avoid a ServiceRequestException from being thrown?

We’re programmatically (using the Microsoft Exchange Web Services Managed API 2.0) to access the user’s calendar (on Exchange 2010 SP1). We have been able to successfully communicate with EWS via auto-discovery in our development environment on…
3
votes
1 answer

EWS Managed API - How to copy items from one mailbox to other

I am writing an application(C#) to sync contacts,appointments,tasks etc from one mailbox to other. I am able to retrieve changes to these items using SyncFolderItems but could not find a way to copy the changes to a different mailbox. It looks like…
3
votes
1 answer

Auto Reconnect When Using StreamingSubscriptionConnection in EWS

I've created a small app that watches an inbox using the EWS managed dll. When I create the StreamingSubscriptionConnection I pass in a 1 minute disconnect. Then in the on disconnect event handler, I sleep for 45 seconds and reconnect. If anything…
priehl
  • 644
  • 2
  • 9
  • 21
3
votes
1 answer

EWS Managed API SyncFolderItems How to Update and Delete/Keeping track of items

I am building an app that is required to live in a trusted domain, monitor a collection of mailbox-calendars on an exchange server in that domain, and sync appointments to different mailboxes on one or many other servers. The mailbox it is synced…
LucasF
  • 121
  • 2
  • 8
3
votes
2 answers

Exchange Web Services Managed API: How can I perform Recurrence Expansion through the FindItem Method?

We are currently working on creating a sync service between our product and Exchange using Exchange Web Services Managed API. Specifically we want to sync (on a time schedule) specific Appointments back and forth on a users calender. As part of the…
2
votes
1 answer

EWS Managed API - Save Draft with inline Images

I am trying to create emails for my users using EWS Managed API 1.1, and need to use email templates our designers have created. I was able to successfully attach image (say header.png) and add an image tag like this (using cid: before the image…
Bhuvan
  • 1,523
  • 4
  • 23
  • 49
2
votes
1 answer

EWS Managed API and SQL Server - Login failed. The login is from an untrusted domain and cannot be used with Windows authentication

I have a process that uses EWS Managed API to save email messages as eml files. Like this: var propertySet = new PropertySet(BasePropertySet.FirstClassProperties, ItemSchema.MimeContent,…
Ross
  • 23
  • 6
2
votes
2 answers

EWS Managed API 1.1 - Pull Subscriptions Memory Leak

Has anyone else discovered a memory leak issue with Pull Subscriptions (ExchangeService.SubscribeToPullNotifications()) in Exchange Managed Web Services API? When calling PullSubscription.GetEvents() the memory utilization climbs 4K with nearly…
SliverNinja - MSFT
  • 31,051
  • 11
  • 110
  • 173
2
votes
1 answer

Forward email using EWS managed api keeping the headers

I am looking for a sample code on how to forward an existing email message (one that is already in my inbox) using the managed api. When forwarded is there some way to keep a message original headers while forwarding it? for example someone sent an…
kobi
  • 123
  • 2
  • 10
2
votes
2 answers

How are meeting appointments connected and how can I use this connection?

When I create a meeting and invite some users and they accept, the meeting appointments are in some way internally connected and when I change one, the other changes too. Can I use or extract this connection using exchange managed api? For example…
Luke
  • 5,771
  • 12
  • 55
  • 77
2
votes
2 answers

Sending e-mail through C#, Exchange and EWS Managed API gives error 407: Request failed - Proxy authentication required. Why?

I am writing a Windows forms application based on C# and the EWS Managed API 2.2.0 (Microsoft.Exchange.WebServices.dll assembly) for a client of mine who works on a company. The app's logic is simple: My client puts his e-mail address…
2
votes
1 answer

How to authenticate a console application with Exchange Online/EWS Managed API?

I'm developing a console app for personal use that uses the Exchange Web Services Managed API as an alternative to Redemption (which I, unfortunately, cannot use). My ultimate goal is to use the app in a Windows scheduled task to connect to my…
2
votes
1 answer

Item.Id.UniqueId is not unique

We have a service which syncs our calender with an exhange calender. In the synchronisation process we use the unique ids to identify the appointments. Now we have a customer, which has non-unique UniqueIds. I used the EwsEditor…
slxSlashi
  • 267
  • 1
  • 3
  • 11