Questions tagged [exchange-server]

Questions about automation and APIs related to Microsoft's Enterprise level messaging server.

Microsoft Exchange Server is the server side of a client–server, collaborative application product developed by Microsoft. It is part of the Microsoft Servers line of server products and is used by enterprises using Microsoft infrastructure products. Exchange's major features consist of electronic mail, calendaring, contacts and tasks; support for mobile and web-based access to information; and support for data storage.

Use this tag on programming questions related to the use of this product - questions on installation, maintenance and configuration are better asked on Server Fault, while questions on the use and configuration of Outlook or other email clients are better directed to Super User.

See also:

4797 questions
93
votes
8 answers

Read MS Exchange email in C#

I need the ability to monitor for and read e-mail from a particular mailbox on a MS Exchange Server (internal to my company). I also need to be able to read the sender's e-mail address, subject, message body and download an attachment, if any. What…
vajarov
  • 1,115
  • 2
  • 9
  • 11
80
votes
1 answer

EWS API - Error when recreating notification subscriptions

When working with pull subscriptions to Office365 calendar folders, I've been getting a lot of ErrorReadEventsFailed messages in the SendNotification request. This error essentially means that the subscription can no longer be found, and the server…
jstruzik
  • 1,440
  • 10
  • 19
78
votes
1 answer

Retrieve calendar items (Outlook API, WebDAV) displaying strange behaviour

We are writing an MS Outlook plugin. To satisfy our business-logic, it should check all appointments between some dates. We are experiencing several problems with retrieving all items from calendars. We tried two options: Outlook API. We use the…
Bolick
  • 781
  • 5
  • 4
70
votes
10 answers

Send SMTP email using System.Net.Mail via Exchange Online (Office 365)

We are testing the new Office 365 beta, and i have a mail account on the Exchange Online service. Now I'm trying to connect a LOB application that can send smtp emails from my test account. However the Exchange 365 platform requires TLS encryption…
Adam Stewart
  • 1,983
  • 1
  • 18
  • 25
61
votes
2 answers

Publishing Outlook Calendars. What is the server-side setting for sync frequency?

I'm working on a custom implementation of a server (VERY basic WebDAV) that accepts Outlook's published calendars. Outlook seems to have a setting (see the screenshot below) where it accepts a parameter form the server that tells it how often to…
Mihail Russu
  • 2,526
  • 1
  • 17
  • 27
58
votes
9 answers

Best way to access Exchange using PHP?

I'm writing a CMS application in PHP and one of the requirements is that it must be able to interface with the customer's Exchange server. I've written up this functionality a few times before and have always used WebDAV to do it, but now I'm…
Bruce the Hoon
  • 1,666
  • 3
  • 18
  • 21
56
votes
4 answers

Reading e-mails from Outlook with Python through MAPI

I'm trying to write a short program that will read in the contents of e-mails within a folder on my exchange/Outlook profile so I can manipulate the data. However I'm having a problem finding much information about python and exchange/Outlook…
johnharris85
  • 17,264
  • 5
  • 48
  • 52
45
votes
5 answers

Get current user's email address in .NET

I would like to know the email address of the user (assuming she's in a typical Windows office network). This is in a C# application. Perhaps something to the effect of CurrentUser.EmailAddress;
Calv1n
  • 623
  • 1
  • 5
  • 7
40
votes
13 answers

'Autodiscover service couldn't be located' when trying to access Exchange 2010 account with EWS MANAGED API

I am using Auto discover service Url for a specified e-mail address. ExchangeService Service = new ExchangeService(ExchangeVersion.Exchange2010); Service.Credentials = new WebCredentials("username@domainname.com",…
user1891567
  • 681
  • 2
  • 10
  • 15
37
votes
3 answers

Error when I try to read/update the .Body of a Task via EWS Managed API - "You must load or assign this property before you can read its value."

I am using the Exchange Web Services Managed API to work with Tasks (Exchange 2007 SP1). I can create them fine. However, when I try to do updates, it works for all of the fields except for the .Body field. Whenever I try to access (read/update)…
tgolisch
  • 6,549
  • 3
  • 24
  • 42
30
votes
8 answers

Save mail to msg file using EWS API

I'm using Exchange Web Services Managed API 1.1 to connect to Exchange server 2010 and then find out new emails received. Now I want to save a copy of the .msg file to a folder on the disk. I do not want to use any paid third party to integrate.…
Bhanu Prakash
  • 301
  • 1
  • 3
  • 3
29
votes
5 answers

EWS body plain text

I use EWS to get exchange emails, but how can i get plain text from email body, without html? Now i use this: EmailMessage item = (EmailMessage)outbox.Items[i]; item.Load(); item.Body.Text
JNM
  • 1,175
  • 4
  • 20
  • 39
28
votes
4 answers

Connect to Exchange mailbox with Python

I need to connect to an Exchange mailbox in a Python script, without using any profile setup on the local machine (including using Outlook). If I use win32com to create a MAPI.Session I could logon (with the Logon() method) with an existing…
Tony Meyer
  • 10,079
  • 6
  • 41
  • 47
26
votes
4 answers

How to get email body, receipt, sender and CC info using EWS?

Can anyone tell me how to get an email body, receipt, sender, CC info using Exchange Web Service API? I only know how to get subject. ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010); service.Credentials = new…
Steven Zack
  • 4,984
  • 19
  • 57
  • 88
26
votes
2 answers

Java Mail to Exchange Server "no login methods supported"

I am trying to implement a Java Mail servlet, first step is connecting to the IMAP server. I am able to telnet to the server on port 143 (default IMAP port), telnet says: OK The Microsoft Exchange IMAP4 service is ready. Now I am trying to connect…
egerardus
  • 11,316
  • 12
  • 80
  • 123
1
2 3
99 100