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
13
votes
5 answers

Javamail NTLM Authentication Failure

Trying to connect to Exchange server using NTLM in JavaMail. I can connect to SMTP, but not IMAP. I can also authenticate via the OS X Mail.app application using the identical host/username/password, account type = "IMAP", Port 143, ssl=false,…
Sam Barnum
  • 10,559
  • 3
  • 54
  • 60
13
votes
3 answers

Exchange web services: why is ItemId not constant?

I write a small application, which should automatically process the emails from a public folder. For each email, we want to save some metadata, in a database. I wanted to use the ItemID to make the link between this metadata and a specific email,…
dann
  • 298
  • 1
  • 3
  • 7
13
votes
1 answer

Why emails sent by smtpclient does not appear in sent items

I have implemented a server that sends emails via .Net SmtpClient. the mail sending code looks like that: private static MailMessage SendMail(string to, string subject, string body) { MailMessage mailToSend = new MailMessage(); mailToSend.Body =…
yossico
  • 3,421
  • 5
  • 41
  • 76
13
votes
3 answers

Using EWS Managed API to create appointments for other users?

In EWS Managed API is it easy to create an appointment for a specific user: ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredentials ( "administrator", "password", "domain"…
Kyle
  • 17,317
  • 32
  • 140
  • 246
12
votes
2 answers

Find all subfolders of the Inbox folder using EWS

I have the following Inbox folder structure: Inbox --ABC ----ABC 2 ----ABC 3 --XYZ ----XYZ 2 --123 ----123 A ----123 B ----123 C I am using Exchange Web Services and the following code to find the child folders of the Inbox folder: ExchangeService…
Sesame
  • 3,370
  • 18
  • 50
  • 75
12
votes
2 answers

Send mails using EXCHANGE SERVER (Microsoft Outlook web access)in asp.net

I know how to send mails using outlook installed in same machine, where I'm running my code. Now, the requirement here is to access exchange server (Microsoft OWA) of my organization for sending mails in asp.net code. Is it possible? If yes, then…
Kings
  • 1,551
  • 12
  • 32
  • 52
12
votes
4 answers

executing a Powershell script from php

I'm trying to execute a powershell script from PHP, but it does not seem to work. The script 'newEvent.ps1' creates an event on the Exchange server. $psPath = "powershell.exe"; $psDIR = "C:\\wamp\\www\\ant\\assets\\ps\\"; $psScript =…
heshanh
  • 367
  • 3
  • 6
  • 19
12
votes
1 answer

exchangelib - All steps in the autodiscover protocol failed

I have a problem with using exchangelib in python. I try this example code: from exchangelib import DELEGATE, Account, Credentials creds = Credentials( username='xxxx\\username', password="mypassword" ) account = Account( …
12
votes
1 answer

Sending Email through Microsoft Exchange Server

Okay, so I have this program which in essence acts as an email client for a company, it constructs the email for them and sends it out. I've done everything on it, but when going to send the email, they get a Mailbox Unavailable. Accessed Denied -…
Zach Ross-Clyne
  • 779
  • 3
  • 10
  • 35
12
votes
6 answers

Are there any API to integrate Microsoft exchange server with Java application for Task synchronization?

I am trying to integrate Java web application with Microsoft Exchange server for bi-directional calendar (i.e. Task) synchronization. Are there any Java Open-Source / Commercial API for this integration? Thanks, Venkat
Venkat Sadasivam
  • 1,435
  • 5
  • 24
  • 42
12
votes
5 answers

Can I avoid storing MS Exchange credentials while still being able to authenticate (against EWS)?

I'm building an application that syncs data between users' Exchange Server accounts (version 2007-2013 supported) and the application. The application can't use impersonation (at least not in the typical case) as users could be on any number of…
David Murdoch
  • 87,823
  • 39
  • 148
  • 191
12
votes
4 answers

Cannot load Exchange powershell snap-in: The type initializer for 'Microsoft.Exchange.Data.Directory.Globals' threw an exception

I have the following code that creates a PowerShell runspace with the Exchange 2010 snap in loaded. Dim runspaceConfig = RunspaceConfiguration.Create() Dim snapInException As PSSnapInException =…
11
votes
3 answers

How to receive push notifications from my Gmail account?

I'd like to write an application which monitors a mailbox (ideally a Gmail mailbox). In brief, my question is how do I listen to incoming emails? I could always keep pulling emails but I am afraid that this doesn't scale very well. How does iOS do…
Martin
  • 39,309
  • 62
  • 192
  • 278
11
votes
4 answers

Updating an Appointment causes it to change to a Meeting in EWS 1.1

Here's what I'm trying to do: get all items on a user's calendar between two dates update the Location or Subject for some items I get the items with: FindItemsResults findResults = calendar.FindAppointments(new…
tig
  • 3,424
  • 3
  • 32
  • 65
11
votes
2 answers

Open Outlook mail Item using EntryID, StoreID, and / or PR_ENTRYID

NOTE: I'm using VBA and Office 2007. (I would use C#, but the project parameters don't allow this) I'm attempting to find some method in Outlook, or an API, that will allow me to open an Outlook mail item by providing either the Outlook EntryID or…
Kyland Holmes
  • 111
  • 1
  • 1
  • 3