exchangewebservices

Problems using the EWS Java API on Android

风流意气都作罢 提交于 2019-11-30 14:02:57
问题 I am trying to use the EWS Java API v1.1.5 (http://archive.msdn.microsoft.com/ewsjavaapi) in an Android application, and have run into a number of issues. I downloaded the source, and followed the instructions provided to compile the EWS Java API in Eclipse. In those instructions you are told to download and add the following pre-requiste jar file dependencies: commons-codec-1.4.jar commons-httpclient-3.1.jar commons-logging-1.1.1.jar jcifs-1.3.15.jar I did this, and followed the build

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 12:57:15
问题 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", "Password"); Service.AutodiscoverUrl("username@domainname.com"); Folder inbox = Folder.Bind(Service, WellKnownFolderName.Inbox); Console.WriteLine("The folder name is" + inbox.DisplayName.ToString()); If I do like this I'm gettin an error: The Autodiscover service couldn't be

Microsoft.Exchange.WebServices is not working in VS2010

笑着哭i 提交于 2019-11-30 11:42:54
I'n using EWS ExchangeService to read emails from outlook... I've coded the in Console project and in VS2008... Everything works fine as it is.. I can read the emails. To become more familair with VS2010 I created a console project and copied the copied to VS2010 project. so I added the referene "Microsoft.Exchange.WebServices" (Version 14.2.51.0) in Microsoft\Exchange\Web Services\1.1\Microsoft.Exchange.WebServices.dll folder. Everything works as it is, so I see the intellisence, I see the methods properties of Exhange assembly etc... using Microsoft.Exchange.WebServices.Data; 1st Question:

Office js Web Addin failing to ExpandDL with soap call

女生的网名这么多〃 提交于 2019-11-30 11:26:33
I'm currently working with an Outlook Web Add-in with Office.js. In this project, we require sending mail merge emails to handle Distribution Lists and Groups. We use the ExpandDL call and our soap request looks like: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Header>

Office 365 / EWS Authentication using OAuth

浪尽此生 提交于 2019-11-30 10:27:08
I'm trying to log onto Office 365 Exchange Online using OAuth and EWS Managed API. I am able to use connect to the Office 365 Web API's (REST), so I do have a valid Token from the Active Directory Authentication Library (ADAL). Now, I'm trying to connect using EWS and TokenCredentials. The code is pretty easy, I think: public static ExchangeService ConnectToServiceWithImpersonation(string token) { var service = new ExchangeService(ExchangeVersion.Exchange2013_SP1); if (true) { service.TraceListener = new TraceListener(); service.TraceFlags = TraceFlags.All; service.TraceEnabled = true; } var

EWS get count of unread emails from all folders

北城以北 提交于 2019-11-30 09:57:01
I'm trying to get number of unread emails from Exchange for specific user. I'm able to get number of emails from Inbox like so: SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And, new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false)); ItemView view = new ItemView(int.MaxValue); FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, sf, view); int unreadCount = 0; foreach (EmailMessage i in findResults) { unreadCount++; } label1.Text = unreadCount.ToString(); This works great. I'm also able to get all subfolders is Inbox:

Problems using the EWS Java API on Android

南楼画角 提交于 2019-11-30 09:12:14
I am trying to use the EWS Java API v1.1.5 (http://archive.msdn.microsoft.com/ewsjavaapi) in an Android application, and have run into a number of issues. I downloaded the source, and followed the instructions provided to compile the EWS Java API in Eclipse. In those instructions you are told to download and add the following pre-requiste jar file dependencies: commons-codec-1.4.jar commons-httpclient-3.1.jar commons-logging-1.1.1.jar jcifs-1.3.15.jar I did this, and followed the build instructions with produced the following jar files: EWSAPI-1.1.0.jar EWSAPIWithJars-1.1.0 Next, I built a

Implementing Outlook 2010's group by conversation using EWS and Exchange 2007

橙三吉。 提交于 2019-11-30 07:37:11
问题 We're using EWS to generate some analytics on some of our mailboxes. Part of this is getting a count/name/start/end of conversations. A conversation being analogous to the way Outlook 2010 shows them when grouping by conversation. I was hoping to be able to use the ConversationId to group items, but that seems to be an Exchange 2010-only feature. I can group by subject within a folder to get a simple idea of threads... however this does not handle split conversations, as Outlook 2010 does -

Access Exchange Web Services with PHP and cURL

孤人 提交于 2019-11-30 05:16:29
Hello, I am currently writing a client to access a Microsoft Exchange server and read contacts, appointments etc. from it. Through days of searching I've been able to connect to the EWS via PHP's Soap client and a custom HTTPS Stream wrapper. This website helped me greatly at this point. Everything worked fine on my Windows 7 machine using XAMPP Now I uploaded my project to a Debian 6.0 Squeeze development machine that has exactly the same configuration as my Windows machine regarding the web-server, php settings, mysql settings etc. but it just wont work anymore The debian machine can resolve

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

我只是一个虾纸丫 提交于 2019-11-30 05:03:35
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 plz throw some light. Thnx UPDATE Got the Solution. Posting my working code here for any one who wants help. happy coding ! protected void Button1_Click(object sender, EventArgs e) { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); //service.AutodiscoverUrl("youremailaddress@yourdomain.com"); service.Url = new Uri(