exchange-server

How to Close a Streaming Subscription for a particular mailbox in EWS API?

偶尔善良 提交于 2019-12-11 17:42:21
问题 I have a EWS Managed API code running with multiple streaming subscriptions. I want to terminate (or restart) the connection to a specific mailbox on the basis of some conditions. How to use the connection.close() (or any other way) to close a particular subscription id? Any idea how to force close a streaming subscription connection? 回答1: Connections can contain one more more Mailboxes depending on how your doing affinity. You just close the connection the mailbox is in itself https://docs

Prevent authentication prompt when configuring a new Exchange Online email profile using Redemption

非 Y 不嫁゛ 提交于 2019-12-11 17:28:38
问题 I have an issue where attempting to configure an Exchange Online mail service for a new profile using Profman causes an authentication prompt, and was wondering if anyone had done something similar programmatically before, and whether or not they were able to provide credentials / prevent the prompt from showing? RDOSession profileSession = RedemptionLoader.new_RDOSession(); string proxy = String.Format("hknprd0204.outlook.com",machineName); string server = String.Format("hknprd0204.mailbox

How to get the millisecond part of the DateTimeRecieved field of emailmessage using EWS managed APIs

眉间皱痕 提交于 2019-12-11 17:13:20
问题 I have a code which synchronizes with exchange and gets the emailmessage objects for the given itemids: List<EmailMessage> emails = new List<EmailMessage>(); ServiceResponseCollection<GetItemResponse> response = MyExchangeService.BindToItems(MyItemIds, PropertySet); foreach (GetItemResponse getItemResponse in response) { if (getItemResponse.Item != null) { emails.Add((EmailMessage)getItemResponse.Item); } } Now, the emailmessage object that I get as a result, contains the DateTimeReceived

ExchangeService.FindFolders not returning any folders

丶灬走出姿态 提交于 2019-12-11 13:53:02
问题 I have a function which loops through a number of defined folders in a mailbox. Each of the folders contains another folder called "Complete". The below code finds this "Complete" folder and gets its FolderId . When run, the code works fine then after a while FindFoldersResults findFolderProcessed = service.FindFolders(folder.Id, new SearchFilter.IsEqualTo(FolderSchema.DisplayName, "Complete"), view); returns no folders. Stepping through the code, everything seems like it should work, but

Receive email from an Exchange server in Biztalk w/o using POP3 or IMAP

你。 提交于 2019-12-11 12:24:34
问题 I know Biztalk has a POP3 adapter for receiving/processing email, but our network group has disabled both POP3 and IMAP access to our Exchange servers. Since I'm not able to connect using those protocols, I'm looking for other options. Is there some way to connect through OWA? Some kind of API access? Are there any other protocols/adapters that might be useful here? Do I need to petition our network group to open up POP3 access, even if it's only to certain accounts/from certain workstations?

How to send email via a Shared MailBox using Exchange Web Services (EWS) API

半腔热情 提交于 2019-12-11 08:58:02
问题 I'm sending emails via a shared mailbox using the MS Exchange Web Services API. Sending emails works but they are not saved in the sent items. As shown below doing it manually works, the items are saved in the Sent Items, but via my code doesn't save them: using Microsoft.Exchange.WebServices.Data; using System; //Ref to Microsoft.Exchange.WebServices v15 //Re to Microsoft.Exchange.WebServices.Auth v15 namespace Emailing { public class Email { private string _sharedOutlookMailAccount =

Display all mailbox calendars which a user has access to

独自空忆成欢 提交于 2019-12-11 08:53:23
问题 This question was migrated from Server Fault because it can be answered on Stack Overflow. Migrated last year . I would like to find out all the calendars which a user can currently access. I searched up the Internet and the closest answer I got is this: (get-mailbox) | foreach{Get-Mailboxfolderpermission (($_.PrimarySmtpAddress)+":\calendar") -user happyboy -ErrorAction SilentlyContinue} |select identity, user, accessrights However, the display does not really show the actual identity which

Exchange 2010 - run command on mail receive

点点圈 提交于 2019-12-11 08:25:34
问题 Does anyone know is there a way to make Exchange server 2010 execute some program upon mail receive for some mailbox ? For example: I have mails test1@example.com and test2@example.com I want to execute program1.exe when mail arrives to test1@example.com and execute program2.exe when mail arrives to test2@example.com I have looked all options in Exchange management console, and didn't find anything similar. 回答1: I made something similar using EWS and powershell. You can download EWS here Then

Incorrect time zone displayed in Outlook after updating a calendar event through EWS

主宰稳场 提交于 2019-12-11 07:57:01
问题 I'm having an issue with time zones when updating an appointment. Step 1, create a single event, works fine First I create a single event, running from 10:00 to 11:00 local time (Amsterdam DST, so UTC+2). My Exchange server 2010 (SP2) knows the "W. Europe Standard Time" timezone. No issue there, here's the event in Outlook 2007: This is the XML that creates the event: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://schemas.microsoft.com/exchange

EWS Digitally signed emails have empty body after upgrade from Exchange 2007 SP1 to Exchange 2013

回眸只為那壹抹淺笑 提交于 2019-12-11 07:54:58
问题 we have a problem with upgrade from Exchange 2007 SP1 to Exchange 2013. We are using ews to get emails from specific folder. Code looks like this: private List<Item> GetAllItems(string folderId) { Folder inbox = Folder.Bind(m_Exchange, folderId); List<Item> m_ListOfItems = new List<Item>(); ItemView itemView = new ItemView(int.MaxValue); FindItemsResults<Item> items = inbox.FindItems(itemView); foreach (Item item in items) { item.Load(); m_ListOfItems.Add(item); } return m_ListOfItems; } Our