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

Can't access public folders root

I've recently coded a .NET Console app using C#. It's purpose was to read the emails within a specific folder, parse them for specific values and save them to a database. Our email system, at the time I originally coded this, was Exchange 2003.…
8
votes
1 answer

Exchange Web Services (EWS) API "To" header for alias

I have an inbox set up in exchange, hello@mycompany.com Additionally, there is an alias for this, news@mycompany.com, so all emails to the news address end up in the hello inbox. Ideally, I want to be able to tell which alias an email has been sent…
8
votes
3 answers

Folder.Bind - "Id is malformed" - Exchange Web Services Managed API

I'm passing the Folder.Id.UniqueId property of a folder retrieved from a FindFolders query via the query string to another page. On this second page I want to use that UniqueId to bind to the folder to list its mail items: string parentFolderId =…
8
votes
2 answers

Email Conversations / Email Threading support in EWS Managed Api (against Exchange 2010 or so)

The EWS Managed API has a handful of functions for retrieving and managing email conversations (aka email threads). Unfortunately, a large part of them work only against new versions of Exchange (2013 etc.) Outlook does implement email threading…
8
votes
0 answers

EWS Managed API breaks Appointment HTML message body on update

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,…
8
votes
2 answers

ServiceId.UniqueId Maximum Length and Format

Every Item (e.g. Task) in Exchange Web Services (EWS) Managed API has an Id property of type ItemId, which then has a String property named UniqueId (inherited from ServiceId — phew, got that?). I'm planning to keep the value of UniqueId in a…
Yuck
  • 49,664
  • 13
  • 105
  • 135
8
votes
1 answer

How to save ItemAttachments using EWS Managed API

Is it possible to save an ItemAttachment? For FileAttachment we using the following EWS Managed API Code to save, if(attachment is FileAttachment) { FileAttachment fAttachment = new FileAttachment(); fAttachment.Load("D:\\Stream"…
user1891567
  • 681
  • 2
  • 10
  • 15
7
votes
2 answers

Exchange Web Service managed, get deleted appointments

I am about to write a ews-application to connect exchange with another calendar programm. What occured to me, how do I get to know, which appointments get deleted on exchange? Is there a way to tell? I couldn't find it in the API and…
7
votes
2 answers

How do I send HTML (multipart/alternative) from Exchange Web Services (2010 SP1)

This issue came to light as I was trying to send an HTML message with inline images (attachments) through EWS. However I have backed off to the simplest form and found that I cannot even send HTML messages. I am using C#, .NET 4, EWS API 1.1,…
7
votes
2 answers

Techniques for integrating an ASP.NET intranet app with the Outlook calendar

I can ignore the braying of my users no longer. They want a task scheduling system and at some point I have to deliver. I was thinking of making my own (can't be hard), but then users would have two side-by-side task managements systems since they…
David
  • 15,750
  • 22
  • 90
  • 150
7
votes
2 answers

UniqueBody is not very unique?

I'm trying to read the content of an email in HTML. My problem though, is that my body is not very unique though I'm loading the EmailMessageSchema.UniqueBody. Here's my expected solution: var props = new PropertySet(BasePropertySet.IdOnly, …
Detilium
  • 2,868
  • 9
  • 30
  • 65
7
votes
4 answers

EWS: Access shared calendars

I am trying to use Exchange Web Services to access calendar data, but I can't seem to figure out how to access calendars which have been shared by other users when it is not their default calendar. Assuming another user in my company created a…
Mike Dour
  • 3,616
  • 2
  • 22
  • 24
7
votes
1 answer

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

I can retrieve the Appointment.TimeZone for items with: PropertySet propertiesAll = new PropertySet(BasePropertySet.IdOnly, ..., AppointmentSchema.TimeZone, AppointmentSchema.StartTimeZone, ...); ServiceResponseCollection response =…
7
votes
1 answer

right way to query calendar items via ews managed api?

I've got the following code: var startProp = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Meeting, "DTSTART", MapiPropertyType.String); var endProp = new ExtendedPropertyDefinition(DefaultExtendedPropertySet.Meeting, "DTEND",…
deostroll
  • 11,661
  • 21
  • 90
  • 161
7
votes
3 answers

EWS reports SendItem as succeeding but message is still in Drafts folder

I'm using the EWS Managed API to send emails via exchange. When sending an item with attachments I first do a CreateItem and then a SendItem. Mostly this works fine but sometimes items are left in the Drafts folder, even though EWS reports the…
Rory
  • 40,559
  • 52
  • 175
  • 261
1
2
3
24 25