exchange-server-2007

Access Outlook user properties from EWS

最后都变了- 提交于 2019-12-01 09:43:17
I'm trying to create an application that use the EWS api to access contacts. I need to look at one of the outlook user properties in this process but I cant see how to get it at using EWS. At the moment ive just tried... service.Url = new Uri("https://url/ews/Exchange.asmx"); service.Credentials = new WebCredentials("credentials"); var results = service.FindItems(folderId, new ItemView(100)); foreach (var item in results) { Contact contact = item as Contact; foreach (var prop in contact.ExtendedProperties) { Console.WriteLine(prop.Value.ToString()); } } Which compiles and executes without a

Determining version of Exchange server on the system using C#

杀马特。学长 韩版系。学妹 提交于 2019-12-01 09:34:42
Is there a way to detect which version of Exchange Server is running (2007 or 2010) via c#? Your best bet would be to use WMI There is VBScript here that gets the version for all Exchange Servers in the domain using WMI and AD. You could convert this logic to the appropriate .Net classes if this is not usable as is. '**************************************************************************** ' This script created by Chrissy LeMaire (clemaire@gmail.com) ' Website: http://netnerds.net/ ' ' This script finds all Exchange Servers in AD. Includes Exchange Version. ' ' Run this script with admin

Grails mail plugin configuration for MS Exchange server

巧了我就是萌 提交于 2019-12-01 07:03:40
I am able to send email using my gmail account from my grails application but when I use MS exchange server account I am getting this error Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.exg6.exghost.com/, 25; timeout -1; Configuration I used is : mail { host = "smtp.exg6.exghost.com" port = 25 username = "xxxx" password = "xxxx" props = ["mail.smtp.auth":"true", "mail.smtp.socketFactory.port":"25", "mail.smtp.socketFactory.class":"javax.net.ssl.SSLSocketFactory", "mail.smtp.socketFactory.fallback":"false

EWS : Appoitnment Item.Id.UniqueId is not constant

試著忘記壹切 提交于 2019-12-01 06:41:12
There is a weird problem I'm facing when working with EWS Managed API 2.0 with Exchange Server 2007 SP3. When I create an appointment and I save it, I get its ID using the following code : appointment.Save(SendInvitationsMode.SendToAllAndSaveCopy); appointment.Id.UniqueId; and I store it in my local DB so I can later use it to update the meeting or cancel it. Later when I want to retrieve the conflicting meetings I use the following code : CalendarView view = new CalendarView(Start, End); view.PropertySet = new PropertySet(); Folder rootfolder = Folder.Bind(service, WellKnownFolderName

Grails mail plugin configuration for MS Exchange server

穿精又带淫゛_ 提交于 2019-12-01 05:53:31
问题 I am able to send email using my gmail account from my grails application but when I use MS exchange server account I am getting this error Message: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.exg6.exghost.com/, 25; timeout -1; Configuration I used is : mail { host = "smtp.exg6.exghost.com" port = 25 username = "xxxx" password = "xxxx" props = ["mail.smtp.auth":"true", "mail.smtp.socketFactory.port":"25",

Getting Exchange Appointments by ICalUid?

∥☆過路亽.° 提交于 2019-12-01 03:25:25
So I'm creating Exchange (2007) Appointments with a given ICalUid: var app = new Appointment(svc); app.ICalUid = id; app.Subject = "Test Appointment"; app.Recurrence = new Recurrence.DailyPattern(DateTime.Now, 3); app.RequiredAttendees.Add("mstum@example.com"); app.AllowNewTimeProposal = false; app.Body = new MessageBody(BodyType.HTML, "This is a <b>Test!</b>"); app.Save(); Later on, I would like to update that appointment, at which point I need to find it through the ICalUid. However, there seems to be no way to do that? I can use Appointment.Bind only against the Exchange ID, which I don't

How do I use CDO with Exchange with vbscript

别来无恙 提交于 2019-11-30 16:24:15
I am trying to setup a script to email using an exchange account. I want to use CDO (or equivalent) with vbscript. The goal is to track email communications through the sent folder of the exchange account. I am using exchange 2007. Use Microsoft NTLM ( http://msdn.microsoft.com/en-us/library/aa378749(v=vs.85).aspx ) In CDO it's a CdoProtocolsAuthentication Enum ( http://msdn.microsoft.com/en-us/library/ms526961(v=exchg.10).aspx ) Const cdoSendUsingPickup = 1 'Send message using the local SMTP service pickup directory. Const cdoSendUsingPort = 2 'Send the message using the network (SMTP over

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:

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 -

c# programmatically reading emails from the Exchange server

主宰稳场 提交于 2019-11-30 01:32:11
When you search on web you will find very easy answers for "How to read emails programmatically"... Al the websites are explaining most of the same like this page. http://omegacoder.com/?p=454 // depends from Exchange server version service.Credentials = new NetworkCredential("MDR", "password", "zzz"); service.AutodiscoverUrl("mdr@zzz.be"); object o = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10)); FindItemsResults<Item> findResults = service.FindItems(WellKnownFolderName.Inbox, new ItemView(10)); foreach (Item item in findResults.Items) { Console.WriteLine(item.Subject); } it