exchange-server

How to set the contact title using Exchange Web Services Managed API

自古美人都是妖i 提交于 2019-12-01 21:04:27
问题 I'm trying to create a new contact using the EWS API. I can set all the values i needed except the contact title property. I tried the code: oContact = new Contact(oService); oContact.GivenName = "John"; oContact.Surname = "Doe"; oContact.Displayname = oContact.Surname; // set the title property as extended property // reference: http://msdn.microsoft.com/en-us/library/gg274394.aspx ExtendedPropertyDefinition oTitleProp = new ExtendedPropertyDefinition( new Guid("{00062004-0000-0000-C000

C# / Exchange EMail Client

北战南征 提交于 2019-12-01 20:14:09
问题 I need to create a very simple c# Windows Service to listen for, and process email wth special subject lines. I already have the code that process these emails working well. For ease of development, I just packaged the code in an "Outlook Addin" on my own machine, running under my own email account. Works great. Now that it's working, I need to move this to the server. I have a special email account setup on the Exchange Server for this purpose. I really don't want Outlook running on the

System.Net.Mail.SmtpException: Insufficient system storage. The server response was: 4.3.1 Insufficient system resources

别等时光非礼了梦想. 提交于 2019-12-01 16:59:44
问题 I've recently designed a program in C# that will pull information from SQL databases, write an HTML page with the results, and auto-email it out. I've got everything working [sporadically], the problem I'm having is that I seem to be crashing our company's exchange server. After the first few successful runs of the program, I'll start getting this exception: Base exception: System.Net.Mail.SmtpException: Insufficient system storage. The server response was: 4.3.1 Insufficient system resources

EWS Managed API breaks Appointment HTML message body on update

淺唱寂寞╮ 提交于 2019-12-01 16:20:08
I'm using EWS Java 1.2, although 2.0 in C# shows the exact same issues, and Exchange 2010 SP3, so a particular bug in SP2 prior to rollup 3 regarding message bodies is not the problem. Long story short: EWS + Exchange = pain. Using EWS in Exchange, you can create an Appointment. You can specify that the message body of the Appointment be HTML and give it a bunch of HTML to go with it. This will do some kind of HTML -> RTF conversion that wrecks the HTML when you view it in an Outlook desktop or web client. Okay, well, we can tailor the HTML to something that doesn't get eaten in the process

How to run retry the commands multiple times in TRY block

£可爱£侵袭症+ 提交于 2019-12-01 14:32:48
Here in below code in try block I want to retry the last three commands to run multiple times and then proceed with catch and finally block. Means a kind of retries if we can put for this 5th, 6th, and 7th line. Lets say 5th line should run 3 times and if it fails then proceed with catch and finally . try { $hostcomputer = hostname $IP = "10.x.x.x" $pso = New-PSSessionOption -SkipCACheck -SkipRevocationCheck -SkipCNCheck:$TRUE -ErrorAction Stop $session = New-PSSession -Authentication Negotiate -ConnectionUri https://mail.test.com/powershell/?ExchClientVer=15.1 -ConfigurationName microsoft

Deleting Meeting Requests made by terminated users

走远了吗. 提交于 2019-12-01 14:30:46
Need to delete the meeting requests made by terminated users from all the conference rooms for multiple terminated users at a time. below is the script which i built to delete the meetings requests for two terminated users from all the conference rooms. i used OR operator if i want to delete the meetings for two terminated users(kind:calendar from:sasi OR Kalai). How can i add more than two terminated users at a time? i have more than 500 terminated users to delete their meetings requests from all the conference rooms. Write-Progress -Activity "Preparing" -Status "Retrieving mailbox list"

Deleting Meeting Requests made by terminated users

给你一囗甜甜゛ 提交于 2019-12-01 13:12:29
问题 Need to delete the meeting requests made by terminated users from all the conference rooms for multiple terminated users at a time. below is the script which i built to delete the meetings requests for two terminated users from all the conference rooms. i used OR operator if i want to delete the meetings for two terminated users(kind:calendar from:sasi OR Kalai). How can i add more than two terminated users at a time? i have more than 500 terminated users to delete their meetings requests

How to Update an Appointment from Exchange Web Service Managed API 2.0 in ASP.NET

旧时模样 提交于 2019-12-01 12:57:21
iam using the EWS Managed API 2.0 to create an Appontment. It works fine. But want to Update an existing Appointment, too. I read that i need the appointment ID to specify which appoint should be edited. But where is the ID? Here is how i create an Appointment: 'Creates the Appointment Dim appointment As New EWS.Appointment(esb) appointment.Subject = txtThema.Text appointment.Body = txtBemerkung.Text appointment.Start = Von appointment.End = Bis appointment.Location = lbRaumInfo.Text 'Adds the Attendees For i = 1 To emaillist.Length - 1 appointment.RequiredAttendees.Add(emaillist(i)) Next

Exchange PowerShell commands through C#

老子叫甜甜 提交于 2019-12-01 12:54:32
I am using C# to send PowerShell commands interacting with Exchange. I have a method called initconnection which sets up my connection to Exchange. I have another method that I call when I click a button that will send a command to powershell after the connection is established. However I am not able to continue the created connection. When I try to run a command it says the command is not found. More than likely because it doesn't have the exchange cmdlets. Runspace runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(); runspace.Open(); Pipeline pipeline =

Automatically moving all mails belonging to same conversation thread to external folder

不想你离开。 提交于 2019-12-01 12:30:15
Hi I have Exchange Server 2007 setup with some users with their own inbox. Since this is all related to office conversations I want to move all the incoming and outgoing mails belonging to same conversation thread to disk folder (any folder on his machine say D:\Conversation1 ). I am able to let user create separate disk folder for each conversation and let him move first mail in conversation to this folder. So that is not the problem now. Also I have written a web app which when provided the conversation ID returns the corresponding disk folder path. However now what I want is to process all