exchange-server

C# MS Exchange Move Email To Folder

坚强是说给别人听的谎言 提交于 2019-12-10 12:57:27
问题 Added: thanks to user @grapkulec, I am using using Microsoft.Exchange.WebServices.Data; I am trying to move an email to a folder that I've already created in Outlook (using MS Exchange). So far, I've been able to move the email to the drafts or another well known folder name, but have had no success moving it to a folder I created called "Example." foreach (Item email in findResults.Items) email.Move(WellKnownFolderName.Drafts); The above code works; but I don't want to use the well known

How I can get email headers programmatically from MS Exchange Server in Java?

有些话、适合烂在心里 提交于 2019-12-10 11:54:42
问题 I can't get access to headers in email. At that moment I can get only ExtendedPropertyCollection object, but I don't know how to work with it. ItemEvent item = (ItemEvent) event; EmailMessage message = EmailMessage.bind(args.getSubscription().getService(), item.getItemId()); ExtendedPropertyCollection extendedProperties = ((ExtendedPropertyCollection) message.getExtendedProperties()); UPDATE: The result code in Java looks like: PropertySet propertySet = new PropertySet(BasePropertySet

Download attachments using Exchange Web Services Java API?

*爱你&永不变心* 提交于 2019-12-10 03:57:54
问题 I am writing a Java application to download emails using Exchange Web Services. I am using Microsoft's ewsjava API for doing this. I am able to fetch email headers. But, I am not able to download email attachments using this API. Below is the code snippet. FolderId folderId = new FolderId(WellKnownFolderName.Inbox, "mailbox@example.com"); findResults = service.findItems(folderId, view); for(Item item : findResults.getItems()) { if (item.getHasAttachments()) { AttachmentCollection

Exchange EWS not returning message body for calendar

南笙酒味 提交于 2019-12-09 19:18:42
问题 So i'm trying to fetch all the calendar event from office360.com . I am using ews to get the data. I sent a request of <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types"> <soap:Body> <FindItem xmlns="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" Traversal="Shallow"> <ItemShape> <t

Android mail search using Exchange Activesync

与世无争的帅哥 提交于 2019-12-09 13:48:24
问题 Is there is way to search mail in Exchange server using active sync protocol in android, i tried in many ways but it works for Global adress lookup but not for mails. can anybody please give the solution it realy helps me. please suggest the any link for clease understanding of Exchange mailbox store. Thanks 回答1: Yes it is possible. Here is an example from the ActiveSync Protocol specification. You will first need to get the list of folders using the FolderSync command, and then use the

PHP IMAP Exchange Issue

霸气de小男生 提交于 2019-12-09 12:06:13
问题 So I have a little problem with a PHP script I'm currently writing. To start off, let me say the script is supposed to connect to an IMAP mailbox, search for some emails and download their attachments. All of this is already coded and is working with my own gmail account. The problem arise when I try and connect to an exchange server. Short code excerpt : $mbox = imap_open($host, $login, $password); echo '<br/>' . imap_last_error() . '<br/>'; $emails = imap_search($mbox, 'FROM "patate@patate

How to to print mail body and subject from unread answer?

南笙酒味 提交于 2019-12-09 01:47:45
问题 I want to get the mail subject and body of only unread mails of my inbox. I want to read one unread mail at a time and mark it as read afterwards. I need the subject , from address and mail body . The below code shows gives me the mail IDs of all unread mails. require_once ('../mail3/php-ews-master/ExchangeWebServices.php'); require_once ('../mail3/php-ews-master/EWS_Exception.php'); require_once ('../mail3/php-ews-master/EWSType.php'); require_once ('../mail3/php-ews-master/NTLMSoapClient

C# MAPI to read exchange server inbox

不想你离开。 提交于 2019-12-08 22:35:53
问题 I want to write C# application which will remotely connect to exchange server and read my inbox! I want to use MAPI for that. So I got two questions: Can it be done remotely, and is there any requirements(e.g. install outlook client,etc? ) I was not able to find any code example in C# which uses MAPI to connect to inbox? 回答1: 1) If I remember correctly Outlook must be installed and a profile must be set up. (In short; you are reading Outlooks data, not Exchange). 2) There are samples for this

PowerShell ParameterBindingException

十年热恋 提交于 2019-12-08 17:38:02
问题 I am currently building an application to automate some Exchange 2010 operations from a ASP.NET MVC website. Right now, I've run into a ParameterBindingException when I try to invoke the New-AddressList command. I am trying to create the following call (which works): new-AddressList -Name "7 AL" -RecipientContainer "myDomain.local/Customers/7" -IncludedRecipients 'AllRecipients' -Container '\' -DisplayName "7 AL" I am doing it by the following: var NewAddressList = new Command("New

Outlook web add-in autentication failure for on-premise exchange

杀马特。学长 韩版系。学妹 提交于 2019-12-08 13:27:29
问题 I use Office.js 's getCallbackTokenAsync to load the token to pass to the backend. In the backend, I use EWS to retrieve the email data. Here is how I perform the authentication. ExchangeService service = new ExchangeService(); service.Url = new Uri(ewsUrl); //retrieved from getCallbackTokenAsync service.Credentials = new OAuthCredentials(ewsToken);// retrieved from getCallbackTokenAsync It works well in exchange online enviroment. However when tested in on-premise exchange server, I got this