Click here to Skip to main content
15,888,351 members
Everything / Exchange Server

Exchange Server

Exchange-Server

Great Reads

by LenJ67
Using PowerShell and EWS to write/update public folder contacts.
by Robert E Campbell
This article demonstrates how to extract attachments from Exchange using VB.NET.
by psined
Introduction to Boomerang Framework
by avg360
Simple mail notifier for Exchange

Latest Articles

by matthewproctor
How to extract attachments from Outlook mailboxes using C#
by LenJ67
Using PowerShell and EWS to write/update public folder contacts.
by Robert E Campbell
This article demonstrates how to extract attachments from Exchange using VB.NET.
by psined
Introduction to Boomerang Framework

All Articles

Sort by Score

Exchange Server 

19 Aug 2010 by Nathan St
You should be using the Exchange Web Services Managed API. "EWS combines the functionality that is included in WebDAV and CDOEX".I don't have a code snippet to hand as I'm not in work just now, but I've done exactly what you describe in your question for a project last year - I'll dig it...
21 Jul 2011 by Alberto Flores
Hi! i need some guide about the way to retrive email address in the TO: FROM: AND CC: Properties from a lsit of email's stored in a exchange server, for example:I download and can read the subject and body from all email stored in a folder on exchange server with a responsestream in xml...
21 Jul 2011 by OriginalGriff
Answered only to remove from Unanswered list - solved by OP (who gets 5 from me for posting his solution)
30 Jul 2012 by Ziko99
http://www.independentsoft.de/exchangewebservices/tutorial/findunreadmessages.html
29 Oct 2012 by Frederico Barbosa
You cannot mix C# and VB code in "a" project. However, you can have a Solution with several projects, each one with its own source language. And, of course, you may reference one project from another.
11 Dec 2012 by kk2014
actually in my above code i commented throw ex;. so i uncomment it and wrote below code to raise error.System.Windows.Forms.MessageBox.Show(ex.Message.ToString());throw ex;and i found it throws error :the request failed.unable to connect to remote server.actually my exchange...
18 Nov 2014 by johngolden666
How big is that mailbox (both size & item count) & is it significantly larger than other mailboxes in the environment?It might be worthwhile to move the mailbox to a new database just because if there is any corruption, it'll sort it out. The other option would be to then run an isinteg but...
19 Jan 2015 by Member 11380736
c# Visual StudioIs it possible to send emails with a digital signature through an exchange server ?I'm able to send emails with EWS Managed API 2.1 (Microsoft.Exchange.WebServices.Data; reference) in c# Visual Studio.But know I want them to have a digital signatureThis is my mail...
14 Apr 2016 by Garth J Lancaster
iirc you dont change user passwords through EWS - why? because they are not stored there, they are stored in MS Active Directory, so you use MS ADSI to change the password you may find these links helpful Invoking ADSI Methods[^]The .NET Developer's Guide to Directory Services User...
15 Feb 2010 by Programm3r
Hi all,I am trying to figure out what would be the best approach to get free/busy information form Exchange 2010. I have Googled this for a whole day now, and eventually decided to ask the pro's.I'm not whether I should make use of the Exchange Availability Service, Exchange Web Services...
6 Apr 2010 by Member 641386
Hi All,We have been looking for some direction or sample code on how to extend the MS Exchange 2010 Server in the manner described below. We have an addin that performs this functionality on the MS Exchange Server as Snapin. We have not found specific references to ‘custom 3rd party...
15 Jul 2010 by Dragonfly_Lee
Hi Guys,I encountered a issue when trying to get the email address of the Exchange user in multi-domain environment.Scenario:1.user1 is in DomainA; its email like user1@DomainA.com2.There is another user in DomainB with the same name as user1 in DomainA, whose email would be...
4 Aug 2010 by C++myLife
Hi All, I need to traverse the server means I am unable to find the storage groups within the server through code. How I can enter to the information store. I have the VB script which is doing the same but I need to do that in VC++.The hierarchy which want is like this Exchange...
6 Aug 2010 by E.F. Nijboer
If you already have the working VB script it must be very easy to port this if you're used to cpp. Simply look at the vb code that finds the storage groups now and I'm sure it is easy to find the matching cpp code for that. Good luck!
19 Aug 2010 by psymon25
HiI have been trying to create a calendar appt via a winform with 0 success.After looking around on google i found many examples all of which did not work?I guess this is due to the exchange server setup as we can no longer access via webdav urls such as https://server/user/?cmd...
6 Oct 2010 by patilsandip.mca
Hello friends,Please tell me how to add the flag facility to the exchange server created using c#.netWaiting for you reply.Thank You!
11 Jan 2011 by Sifar - 0
Hi Everyone,I have an application that reads Unread mail from user's exchange server.Some of the emails that have .MSG as attachment haveResponse.ContentType value as "application/octet-stream"and some have this value as "message/rfc822".Response with ContentType "message/rfc822"...
12 Jan 2011 by E.F. Nijboer
Have a look at this msdn page that might help you out:http://msdn.microsoft.com/en-us/library/aa488364%28v=exchg.65%29.aspx[^]In IBodyPartPtr the content type is set to "message/rfc822":bp->Fields->Item["urn:schemas:mailheader:content-type"]->Value = _variant_t("message/rfc822");Good...
18 Jan 2011 by chetverg
Hi,I am using Exchange + WebDav. The problem is when I mark mail(this email has a read receipt request) as read(WebDav request) the Exchenge server sends a read receipt automatically.How can I prevent it? I tried to reset headers 'return-receipt-to' and 'disposition-notification-to'...
7 Apr 2011 by GenJerDan
AD configurations can differ a bit. MY distro lists are accessible via LDAP://OU=Distribution Lists,OU=LocalOU,OU=NotSoLocalOU,DC=Some,DC=Thing,DC=Else,DC=HereBut what do you mean by "don't resemble"? Completely wrong, or not in the format you think they should be in?EDIT: ...
26 Apr 2011 by Rob Branaghan
Try the following links for...
4 May 2011 by Member 3362773
Hi,I have a requirement to develop a web based mail monitoring tool for a supporting team using asp.net, c#. That tool should have to access Exchange Server (2007 or 2010) mail account by giving mail id and password and get those mails and store those in a SQL Server 2008 database. Can...
27 Apr 2011 by Kim Togo
Have you looked at Exchange Web Services Managed API 1.1 SDK[^]
13 Jun 2011 by bhanunet
HiI am creating a service which connect to Exchange service and get new mail from there. I am able to get new mail from there when I execute the code manually. I need to get mail as it come to inbox. To achieve this requirement I want to use Push notification of EWS API.I have written code...
19 Jun 2011 by Kim Togo
When you new server is Windows Server 2008 and Exchange 2010. You have to prepare the Active Directory[^] and then migrate all users to Exchange 2010[^].
21 Aug 2011 by maishar
HiI wrote an Exchange EventSink, implementing the interface 'IExStoreSyncEvents' and I use it to filter out unwanted messages and do several more other things.The EventSink works perfectly. However, I would like to know who the client was which generated the action: Outlook or OWA...
28 Aug 2011 by nikunj001
EWS urls have the following form:"https://x.b.com/EWS/Exchange.asmx". The link here talks about the format of the exchange service url:http://msdn.microsoft.com/en-us/library/dd633692%28v=exchg.80%29.aspx[^]You've used"https://mail.abc.com/owa/Exchange.asmx"Hope it helps.
31 Aug 2011 by Pradip_Bobhate
I want to download/ access attachment from particular mailbox. I am trying to do using following code however I am not getting any attachment. (may be because AttachmentID's are not proper)ExchangeServiceBinding esb = new ExchangeServiceBinding(); esb.RequestServerVersionValue = new...
1 Sep 2011 by Pradip_Bobhate
I am using Exchange Server 2007 SP3and I am able to connect exchange web service using following code ExchangeServiceBinding esb = new ExchangeServiceBinding(); esb.RequestServerVersionValue = new RequestServerVersion(); esb.RequestServerVersionValue.Version =...
31 Aug 2011 by Ganesan Senthilvel
A succesful ExchangeService message has the below format:
1 Sep 2011 by vinaykhin
Hi,I want to get calender events such as appointments , meetings etc. from microsoft exchange server 2003 through c#.
6 Sep 2011 by Abhijit Jana
Well as you are new in Exchange Web Services ( EWS ) , I will suggest you to read this series of articles form Brij [ Check For Microsoft Exchange Section ] .Microsoft Exchange[^]If you check the Second Article,Programming With Exchange Server 2007 (EWS) - Part 2[^], there is a section...
15 Sep 2011 by Pradip_Bobhate
I am using Exchange Server 2007 SP3 and I am able to connect exchange web service using following codeExchangeServiceBinding esb = new ExchangeServiceBinding();esb.RequestServerVersionValue = new RequestServerVersion();esb.RequestServerVersionValue.Version =...
16 Sep 2011 by Ayman Mahmoud
How can I add custom aspx pages to OWA in Exchange 2010?!
17 Sep 2011 by DaveAuld
I suggest you start by reading; http://msdn.microsoft.com/en-us/library/bb891803(v=exchg.140).aspx[^]
1 Jan 2012 by Anil Avhad [IND]
I have Created two Organization(1. org01.local and 2. org02.local ) and also created one user in each Organization i.e user1@org01.local and user2@org02.local.When i login to Owa from user1@org01.local and set Auto Relpy Out Of Office Setting applied for both users i.e for internal as well...
9 Jan 2012 by skrzypol
Hello,I’ve got a problem with Outlook 2010 and Office 365 Exchange Online. I try to configure two account on one Outlook. First I add my primary account (lets says first@ms.com) and then I add second account (second@ms.com). Other person from my company do the same thing – and we’ve...
14 Mar 2012 by Sebastian T Xavier
Hello All,I have a problem with Exchange server 2007. I was trying to execute the following query get-mailbox | FL. This query was working when I tried it in the Exchange server's power shell console after executing following query Add-PSSnapin...
20 Mar 2012 by rbloesser
this works with the "full name" but not an alaisFunction userDetail(theAlias As String) As StringDim olkDL As Outlook.DistListItemDim olkEntry As Outlook.RecipientDim olkContact As Outlook.ContactItemDim intCount As IntegerDim strAddress As StringDim strName As StringDim oApp...
28 Mar 2012 by soby
Hey guys,I was wondering what possible scenarios could cause a QUIT (POP3)command to fail? and if it failed to quit, what would be the side effects? for example, does it cause problems with new connection trying to read mails?
28 Mar 2012 by Jochen Arndt
See RFC 1939[^].The reason of the failure is usually send with the -ERR response.The QUIT command may fail if the server can't delete messages that has been marked for deletion with the DELE command. You must assume that no or not all marked messages has been deleted. A new connection...
23 Apr 2012 by Guirec
Give a try without the domain name (or computer name) in your login name (remove the ABC\ part).. I experienced a similar issue when using EWS from C#.
3 May 2012 by Sebastian T Xavier
Hello,I was trying to connect to a machine(192.168.1.194); using powershell using the following query Enter-PSSession 192.168.1.194. But I got the following error. Enter-PSSession : Connecting to remote server failed with the following error message : Access is denied. For more...
3 May 2012 by Dave Kreskowiak
First, this has absolutely nothing to do with C#, so I fail to see why you tagged your question "C#". It should have been "PowerShell".Second, what part of "Access Denied" and "see the about_Remote_Troubleshooting Help topic" you listed in your error message is difficult to understand?
15 May 2012 by Sebastian T Xavier
How can I get the URI of my Exchange server 2010 hosted in my network. And what will be the URI of powershell in that sever?Actually I would like to know how I can use the following code?System.Uri uri = new Uri("http://CAS-SERVER/powershell?serializationLevel=Full");When I used it as...
15 May 2012 by phil.o
For Outlook Web Access:https://your.server.ip.address.or.dns.name/owa[^]For Exchange Web Services:https://your.server.ip.address.or.dns.name/ews[^](provided you are talking about Exchange 2010, which you did not mention).
16 May 2012 by Chandra Sadhangiri
Try registering the snap-in using C:\Windows\Microsoft.NET\Framework\v2.0.50727InstallUtil c:\program files\microsoft\exchange server\bin\microsoft.exchange.powershell.Configuration.dllNote the difference is in using 32bit version of InstallUtil
3 Jun 2012 by JohhnyRysen
With the help of Exchange Server Fix Toolbox you may extract .edb contacts, messages, calendars, tasks and provides the detailed log of recovery process.
6 Jun 2012 by xtremeguy_manoj2626
Hi All,I have migrated the code to read Exchange Server 2010 Inbox mails and do transactions.My Earlier application will read the mails from Exchange Server 2003 and update all the mail paramaters in application.Now the same code is migrated to Framework 4.0 which reads mail...
6 Jun 2012 by xtremeguy_manoj2626
Now migrated code is working fine in Exchange server 2010
15 Jun 2012 by Tim Corey
What you have here is an authentication issue. I think this like will be able to help you out:http://social.technet.microsoft.com/wiki/contents/articles/8004.scom-2007-exchange-2010-how-to-resolvetest-powershellconnectivity-errors.aspx[^]Here is another link that might help you...
18 Jun 2012 by El_Codero
Hi,please read this topic at SO, should also work for you:http://stackoverflow.com/questions/1469791/powershell-v2-remoting-how-do-you-enable-unecrypted-traffic[^]Regards
25 Jun 2012 by Jamil Hallal
Any sample code on how to update a contact in exchange ? I tried a sample code from the microsoft site but it doesn't show how to update the Business Address, Home & Other addresses, please note that i'm not using the EWS Managed API.This is my code:static void...
13 Sep 2012 by Mehdi Gholam
MS Exchange is a server based installation it will not install on a client OS like Windows 7.Try installing it in a Win2008 virtual machine on Win7.
19 Sep 2012 by Kuthuparakkal
Have you tried EWS Managed API:http://msdn.microsoft.com/en-us/library/exchange/dd633696(v=exchg.80).aspx[^] http://www.microsoft.com/en-us/download/details.aspx?id=28952[^]
9 Oct 2012 by Umesh Sharma Kota
Dear friendsI know vb.net does not support DDE, so i am using a nice alternate NDDEhttp://ndde.codeplex.com/[^]My Question is ...==================Is there any way, that we can Retrieve Topics List and Items List from DDE Server Application, so that we write "Advice requests" for...
17 Oct 2012 by harshal rajkotia
Hi,I created cloud project with email sending functionality using Exchange Webservies Api. But when I deployed the solution on azure it give below error :- "at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverResponse..ctor() at...
17 Oct 2012 by Mukesh_Chauhan
So, here is the essential code snippet to send an email via EWS (Exchange Web Services) by leveraging the EWS Managed API 1.1 (get the download here):var service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);service.Url = new Uri( ...
23 Oct 2012 by arielbeck
Hey, I'm facing the following problem:1. i have Exchange server (2007).2. i want to be able to do the following:for each mail that its subject starts with "s:", instead of sending it to the recipient, forward it to a specific internal IP addressi've tried transport rules, i can specify...
23 Oct 2012 by arielbeck
Managed to do it using TransportAgent - which redirects mails to a smart host (send connector) that should be defined.
23 Oct 2012 by arielbeck
Say i'm in a domain MyDom.com.if i send mails from outlook client to another user in the domain, it seems that outlook wraps the smtp request in TNEF format (where the body and attachments are replaced with winmail.dat file).can i somehow change the internal handling to simple MIME...
6 Nov 2012 by Sebastian T Xavier
Hello,Can anyone help me to find number of mailboxes in my Exchange Server instance using Exchange Web Service.Thanks for your time.Sebastian
14 Nov 2012 by skydger
Hi, try to use System.Net.Mail.SmtpClient. I used the following codeThis code works even in .NET 2.0 with domain credentials. Some parameters has been taken from configuration file.string mail_server = Properties.Settings.Default.MailServer;int mail_port =...
11 Dec 2012 by kk2014
hi all,i am sending mail through exchange server version Exchange2010.below is my code:static void Main() { try { string owausername = string.Empty; string owapassword = string.Empty; string...
16 Mar 2013 by kk2014
Hi all,i got the below issue while sending mail from my VB 6.0 application.The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was availableI have tried to replicate but no luck.can anybody tell me is this problem is from...
19 Mar 2013 by vrsangeetha
Dear All,We need to use the contact details from OWA in our application.Kindly let me know solutions for the following1.In case user is configured email Signature in OWA can we get the signature from exchange using Exchange web services ?2. Getting personal contacts using the EWS3. Above...
21 Mar 2013 by uspatel
Hi,I am using two mail server.MS Exchange ServerZimbra Mail Serverboth have different user names.My company needs to develop a webpage as login page.If user of Excahnge server login through this page then he is redirected to Excahnge mail server without asking credential...
21 Mar 2013 by FrankParisien
To get and set OWA signature (plain and html) and other OWA settings is possible with Exchange Web Services .NET
4 Apr 2013 by Sebastian T Xavier
Hi All,I was trying to execute following exchange server 2007 (powershell) command.$server='exchangeserver.abc.local';$pwd= convertto-securestring '123' -asplaintext -force;$cred=new-object -typename System.Management.Automation.PSCredential -argumentlist 'Administrator',$pwd;...
7 Apr 2013 by Roberto Parco
how can I read and write data of tasks and notes with Microsoft Exchange? I prefer to use C + +.Thanks to all
8 Apr 2013 by Ants Hurdley
HiI'm trying to get all my contacts from Exchange using EWS.I am getting all the data I want (name, email phone number etc) but the notes field is always empty. I List contacts = new List(); ExchangeService service =...
7 May 2013 by Sebastian T Xavier
Hi All,I am looking for a C# / WMI solution to find the version of Exchange server installed in a machine.I have used the following query and it is not responding. string condition = "Vendor LIKE 'Microsoft%' AND Name = 'Exchange'";string[] selectedProperties = new string[] {...
7 May 2013 by Johnny J.
Try wrapping "string version = (string)product["Version"];" in a try/catch - could be that there are some objects that don't have a version - and that could cause the execution control to go haywire...
10 May 2013 by Sebastian T Xavier
Hi,I want to monitor exchange server 2007 using powershell scripts. Here are the scripts which I have used for that.$secpasswd = ConvertTo-SecureString "password" -AsPlainText -Force $mycreds = New-object -typename...
16 May 2013 by khurram_shahzad
Hi,My question/issue is related to jWebDav library to connect to Microsoft Exchange Server from my Java web Application.thing is that I'm using jwebDav to connect to Microsoft Exchange Server from my java web Application in internal network. when my application go to access users mailbox it...
27 May 2013 by Farrukh Zohaib Arien
Greetings,I am trying to create an application through which a designer with no direct access to exchange server can put HTML disclaimers and application can then save that HTML to an already created disclaimer rule on exchange.For the purpose I would like to know if is there any...
30 May 2013 by Ivan Startsev
Hi all!I`m using EWS Proxy Classes to create new items in ExchangeServer(emails, calendars and etc.). I ahve only one problem: i need to create item with custom CreationTime ( for example, like message was created a month ago ).DateTimeCreate property is one of properties, that don`t have...
9 Jun 2013 by Andro Andro
If you use JWebDAV you have to use this url:String mailBoxUrl = "https://[server IP]/exchange/[emailaddress]";
2 Jul 2013 by Ivan Startsev
Hi!I need to uniquely identify the user's mailbox. For example, it would have helped the owner's name.Is it possible to get any information of mailbox via EWS?Thanks in advance.
4 Jul 2013 by _mak
Is it possible to assign roles using the Exchange web services in c#? Like you programatically automate of adding the role ApplicationImpersonation and assign the role to the users in Office 365 Exchange?
12 Jul 2013 by Mehdi Gholam
Start here : http://technet.microsoft.com/en-us/library/dd638137%28v=exchg.150%29.aspx[^]
4 Sep 2013 by Abdul 08009
Hope you all are fine.I have an application which requires to send 1500-2000 emails with attachment to the same number of customers. My Question is "What would be best practice to achieve that efficiently?"Whether 1)It can be done efficiently by organization's email account -...
1 Nov 2013 by Member 10374479
Hi,We have hosted our exchange in 3rd part data centre. We would like to bind or restrict each mailbox with a particular MAC address of the desktop/pc/ipad/Blackberry etc.Can it be done ?. If yes, please do let us know the procedure for the same.RegardsMukund
17 Dec 2013 by Developer Hemu Patel
HelloI am developing WCF Service which use the EWS Managed API.I am stuck. I have to access the field name "use urn:schemas:httpmail:messageflag" using the EWS Managed API to set the EmailMessage Property on the Exchange server.How can you provide direction how to do...
2 Jan 2014 by ZurdoDev
This is not a code issue and you should ask Microsoft.
3 Feb 2014 by Vamsi Krishnna
Try this code making necessary changes.Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Try Dim Smtp_Server As New SmtpClient Dim e_mail As New MailMessage() Smtp_Server.UseDefaultCredentials = False ...
4 Feb 2014 by TheITManager
ANSWER!! Had my development laptop's IP address added to the ALLOW RELAY list on the server. -- This resolved the problem. When I deploy this onto a production server I will have to get the servers IP address added also. Thanks to mgoad99...
19 Feb 2014 by Jagadeesh Bollabathini
Did you solved this problem?I am also facing this.Please help me, if you got it
2 Mar 2014 by Member 10637956
How to display a list of calendar appointment items in ListView using EWS (my Exchange Server 2007 -SP 1) and C# (VS Express Web). I have different time zone user.
9 Mar 2014 by Sergey Alexandrovich Kryukov
I am sure you are not using any real-time system and not working at anything like that. The question simply makes no sense.—SA
19 Mar 2014 by Member 10682680
Our aplication is currently using Exchange Server 2007 to send out messages. The application is using 2 microsft exchange DLLs:-1.MSMAPI32.DLL2.Cdosys.dllWe are going to upgrade the Exchange Server from 2007 to 2010. What changes do we need to do in our application with respect to...
19 Mar 2014 by phil.o
Normally you should not need to update MAPI CDO.If the server asked for that after migration, though, you just have to search for 'MAPI CDO' on google and find the download on Microsoft's site. But this should not be needed.
10 Apr 2014 by dorababu407
Hi all, I want to know best way for Email Notifications in Exchange server. My organisation has 10 users, i want to get notification if any user mailbox got any new mail.i need to create API, that was consumed by another Team in their Application.I am using Exchange server...