Click here to Skip to main content
15,899,679 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 Updated

Exchange Server 

11 May 2022 by Haifovchanin
The application may access the same mailbox from two different computers and retrieve unread emails. I'd like to change mail status to Read immediately on mail retrieving to avoid downloading the same email to multiple stations. What I have...
11 May 2022 by Dave Kreskowiak
That's not how an email server works. You cannot guarantee both machines will NOT get the same email. No, you cannot download the emails and simultaneously mark them as read. While machine1 is downloading the emails, machine2 can be doing the...
18 Nov 2020 by Frankie_M
Right now I use this code to retrieve the body of an email from Exchange 2010: i.Load(New PropertySet(BasePropertySet.IdOnly, ItemSchema.Body)) Dim strEmailBodyLines() As String = Split(i.Body.Text, vbCrLf) Unfortunately I get a HTML response,...
18 Nov 2020 by OriginalGriff
Simplest way is probably to use something like the HTMLAgility Pack to process the HTML and remove the text from that. If nothing else, that approach should work with any system ...
12 Jun 2020 by Tshumore
I cant get this working no matter which workarounds i put in my code . What i am trying to do is send an email using my domain Exchange Server and my usual domain email address. This is my code : static void Main(string[] args) {...
20 Mar 2020 by Joan M
I've found the BASE64 image embedding system, which seems to convert the image to a string of chars that you can insert in your disclaimer. This embeds the image automatically.
20 Mar 2020 by Joan M
Hi all, I've just got Office 365 Business Premium working, configured the mail and an HTML disclaimer to get automated signatures to my mails. When I send a mail, the picture in my signature is not downloaded automatically, which makes the mail...
21 Nov 2019 by RickZeeland
Take a look at Microsoft Graph: Stay up to date with a user's mailbox - Microsoft Graph[^]
21 Nov 2019 by Member 10491416
I have developed a meeting room booking application using C# asp.net MVC and SQL server, where in user can book conference rooms based on availability of conference room on selected time frame, Now I want to add a functionality to my application to sync meeting room booking details with Outlook...
10 Jul 2019 by Kamalllll
Currently my application has ability to process incoming emails and bounce then back if it does not match with given criteria in code. However, I want to add up another type of email to Process which are NDR "Non-Delivery Reports" from Microsoft Exchange Server. So my application do not...
10 Jul 2019 by Maciej Los
Check this: Parse Non-Delivery Report (NDR) in C#[^]
17 Jul 2018 by Kiran Kumar Chinta
While performing queries against Active Directory Domain Services using one of the .NETs’ reference/namespace i.e., System.DirectoryServices, we are unable to create AD account containing numeric(s) in Display Name or Email Address. It’s a 2 step process, creating the mailbox and then updating...
11 May 2018 by Bryian Tan
Very likely the SMTP provider (in your example company.com) has SPF setup. Which is a good and beautiful thing. What is SPF? "Sender Policy Framework (SPF) is a simple email-validation system designed to detect email spoofing by providing a mechanism to allow receiving mail exchangers to check...
11 May 2018 by TempoClick
I am sending a .PDF file as an Email attachment to a SharePoint document library using SmtpClient and MailMessage. I provide the credentials of the sender for authentication but yet I am getting the exception mentioned in the subject. What is wrong and what can I do instead? Is it mandatory to...
11 May 2018 by F-ES Sitecore
You need to contact whoever administers the smtp server you are using ("server30.company.local") and tell them you want to relay from the company.com domain and follow their advice. They might flat out say you can't, they might be able to configure their server to allow this, they might give you...
5 Feb 2018 by ahstax
Hello, I'd like to add information at the end(!) of an incoming email's subject line, using exchange 2010 transport rules and regular expressions. This is for showing whether or not an email received by the MTA, which is not the exchange-server, was delivered TLS-encrypted. This I want to...
3 Oct 2017 by IamWsk
I want to import contacts into a mailbox (exchange server) from my DB and that contacts should be access from anywhere when user login to that email. Unlike outlook that remains limited for specific computer. What I have tried: I tried nothing as I don't get anything to try.
3 Oct 2017 by IamWsk
I got the solution here is my code ExchangeService service = new ExchangeService(); service.Credentials = new NetworkCredential(username, password); service.AutodiscoverUrl(emailaddress); Contact contact = new Contact(service); contact.GivenName = "ABC"; contact.Surname = "XYZ";...
6 Jul 2017 by pranay_w3
I have built an SSIS package which reads CSV from certain folder. But now I need to download same csv from exchange server.Also Outlook is not installed on my machine. Will I be able to download CSV from exchange server and how ? Thanks! What I have tried: I have found out it can be done...
6 Jul 2017 by Richard Deeming
I'd suggest using either IMAP or POP3 to fetch the email. You'll then need to parse the message to extract the attachment. Fortunately, the hard work has already been done for you! MimeKit[^] GitHub - jstedfast/MailKit: A cross-platform .NET library for IMAP, POP3, and SMTP.[^] GitHub -...
21 May 2017 by _ChM_
Hello, I use the EWS Managed API to create appointments in a public calendar (public folder). If I use an Exchange Server account it is no problem to create an appointment in a public calendar. If I use an Office365 account to create such an appointment, it is created with the correct start...
14 Dec 2016 by Member 11888682
I try a lot of time to write a program, find a piece of code or Api to connect exchange server 2010 SP3 (+) using c#, .net.My goal is to get information about users mailbox like limiting capacity (quota) mailbox, check online the box capacity and set capacity qouta mailbox.Has anyone...
14 Dec 2016 by Chris Quinn
The best site to find information on the use of Exchange server is Outlook and Exchange Solutions Center[^]
21 Oct 2016 by rezaasad
Hi Everybody,I have a problem with sending email from my MVC application. Here is the codeExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1); service.UseDefaultCredentials = false; service.Credentials = new...
21 Oct 2016 by F-ES Sitecore
Configure Exchange so that "EmailSender" has the rights to send messages on behalf of other people. You'll need to google how you do that, Exchange config is outside the scope of this site.
21 Aug 2016 by Member 12696173
I want to add an item to the right-click menu in Outlook Web App in Exchange 2010, so that when the user click in OWA on my created custom menu item , it will go to the new URL (my application) with the properties: ae, a, etc.I followed the steps mentioned in and the replies from...
5 Aug 2016 by Member 12318350
Can anyone suggest me how to connect to Exchange Mailbox 2010 and retrieve contacts from the Public folder. I have Exchange Mailbox 2010 and I need to connect to Exchange via my .net application and I am using unmanaged API (HTTP request) to connect and retrieve contacts from Exchange Mailbox...
5 Aug 2016 by NishantRaval
Hi,Can anyone suggest me how to connect to Exchange Server 2010(Client Access, Hub) and retrieve contacts from the Public folder. I have Exchange Server 2010 and I need to connect to Exchange Server via my asp.net/C# application and I am using EWS Managed API 2.0 to connect and retrieve...
28 Jun 2016 by Member 12599256
Answer from Microsoft : https://support.microsoft.com/en-us/kb/3006861[^]
3 Jun 2016 by Demon Slayer
Hi everyoneMy question his as follows. I wrote a software, that sends email's. At the time the exchange server was exchange 2010, and everything was working fine. On the following weeks the version is going to be upgraded to exchange 2016. How do i config the following line
15 Apr 2016 by Aakash Kumar Morya
I am trying to create a new distribution list using exchange server command "New-DistributionGroup"When i am entering duplicate alias name then it is allowing me to create the new distribution list. While when i try to create the distribution list from the Exchange Server UI in Office 365...
14 Apr 2016 by Vijay Radia
I want to notify user 5 days before his password going to expiry.. I found the expiry date of email account on server but now i want to create a page to change password programatically using EWS Managed API..Can anyone help Me?What I have tried:I Found expiry date but not getting...
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...
17 Nov 2015 by DanielBrownAU
Duplicate question from yesteday which I awnsered. how to Intergrate Share point 2013 with lync 2013[^]What your asking does not make sense.
16 Nov 2015 by kingsa
Hi All,I want to login into Lync 2013 through Share point 2013, can you guide or send snippets.
1 Nov 2015 by Vaidhya.P
Hi ,We got a requirement to create a Mailbox in outlook. We already have these users in AD. I Tried with CDOEXM but its not getting installed -> in other blogs they are saying outlook 2010 cannot be installed with CDOEXM .So How to create a MAIL BOX for EXCHANGE SERVER 2010 using...
20 Oct 2015 by Mangesh9692
smtp.gmail.com and 587 for gmail .........
20 Oct 2015 by Mangesh9692
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); //Read fromEmail from registery string fromEmail = Registery.fromAddress; //Read fromPassword from registery string fromPassword =...
20 Oct 2015 by kartheeknr
Hi,We are working in Mailing system in asp.net,our client using Microsoft exchange server outlook.office365 . we are getting "System.Net.Mail.SmtpException: The operation has timed out error ". i google all sources but didn't work for me.Please help us. Thanks in...
20 Oct 2015 by Gokulprasad05
MailMessage msg = new MailMessage(); msg.To.Add(new MailAddress("someone@somedomain.com", "SomeOne")); msg.From = new MailAddress("you@yourdomain.com", "You"); msg.Subject = "This is a Test Mail"; msg.Body = "This is a test message using Exchange OnLine"; msg.IsBodyHtml...
18 Oct 2015 by matthewproctor
How to extract attachments from Outlook mailboxes using C#
7 Oct 2015 by Sergey Alexandrovich Kryukov
Please see: http://gsexdev.blogspot.com/2005/04/aspnet-and-exchange-tips-and-samples.html[^].—SA
5 Oct 2015 by Santhosh Kumar
HI, I am developing a c# application that moves an email from inbox to an other folder, after that email must be marked as read, i am able to move it but i am unable to find how to mark that email as read. can any guide me here.Thank you
4 Sep 2015 by Nandeotifur
I am currently trying to extend functionality of a HTA/vbscript. The current coding will allow to look up a single user on AD, allow password reset, unlocking of account as well as display name, description, employee type, email, password validity timeframe, account status, home postal address,...
4 Sep 2015 by droka1984
I use below code to send mail with attachments from a Lotus Notes client to internet mailboxes.All of other mailboxes work well with this code, however when my mail send to Microsoft Exchange 2010 and Outlook the attachment has been parsed to garbled languages in text body. I tried many ways...
20 Aug 2015 by Member 11728839
enter-pssession -ComputerName $computer
17 Aug 2015 by David Harper
Here is other good option available at http://www.edbtopstutility.org/ which provides an easy way to recover corrupt or inaccessible edb files and fix all issues like file size error, jet errors, server failure or downtime etc. This tool convert recovered edb files to accessible outlook pst...
20 May 2015 by Jamil Isayyed
Hello Folks,I am trying to convert all internal mails (TNEF format) in exchange server to plain text.i successfully converted the body, but i couldn't convert or change the body format in the TNEF message to plain text which is different than the External mails where we use the headers...
5 May 2015 by Jamil Isayyed
Hello Folks,i have been trying to create a transport agent which change the Body format for internal mails which use the TNEF parts - Internal emails.what i found that the body format changed from HTML to none when i created a TNEFwriter object as follow: MimePart tnefPart...
30 Apr 2015 by Jamil Isayyed
Hello Folks,I have implemented a transport agent to convert all the HTML messages to plain text, the transport agent works fine with all external messages, where i convert the body and change the content type through the MIME part.but with the internal messages its not working fine, i...
26 Apr 2015 by Jamil Isayyed
Hello Folks,i have an exchange server 2010, i want to change the format of the messages to text.i am using currently the RoutingAgent class and trying to change the format through the MIME document, i am not sure if i am in the right direction!but how i can change in the MIME...
14 Apr 2015 by Sergey Alexandrovich Kryukov
It's possible that Outlook is running and the file is opened for exclusive use by Outlook (this is the default way of opening files). If this is that problem (no matter if your access is blocked by outlook or any other process), you can use the Sysinternals utility "handle.exe". For further...
14 Apr 2015 by Member 11606873
Hi,I am working on a solution to to extract emails from exchange using EWS APIs and then upload to SharePoint online . Below is the sample code for file creation, and before upload to sharepoint.string mSubject = mItem.Subject; string targetFileURL =...
3 Apr 2015 by mojtabaNava
Hi.i will install EXCHANGE SERVER 2013 in windows server 2012.error in installing:Error:The following error was generated when "$error.Clear(); $vdirName = "PowerShell"; $InternalPowerShellUrl="http://" + $RoleFqdnOrName + "/powershell"; ...
6 Mar 2015 by mahesh kumar BM
I have a task where i need to check the emails delivered to my mailbox and read them ,based on subject i have to do some task. But for demo purpose I have put only the basic functionality of just updating the email read statusThe basic connection and creating service object everything is...
26 Feb 2015 by hebsiboy
Remove Remove Remove Remove Remove Remove Remove Remove Remove Remove Remove RemoveRemove Remove Remove Remove Remove Remove Remove Remove Remove Remove Remove Remove
24 Feb 2015 by Joan Magnet
Web services need to know what type of data are you sending.Data Types Supported by XML Web Services Created Using ASP.NETCan you xml-serialize the attached data?XmlSerializer Class
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...
16 Jan 2015 by Member 11380736
I solved it.The problem was that when the user id was found in the mssql database and writen to the bruger.Text it added some empty spaces. I think it's the .ToString();that did this.My solution was to write this line:bruger.Text = bruger.Text.Replace(" ", ""); ...
16 Jan 2015 by Dave Kreskowiak
No enough information.Since TextBox.Text just returns a string, you just have to type "user1" (without the quotes) into your usertextbox and you get the exact same thing.The server is telling you that whatever you're doing isn't authorized, given the data that you sent.
16 Jan 2015 by Member 11380736
I have some c# code that creats a standard email and sends it through an exchange server.I have 6 textboxes in this mailform: from,to,subject,exchangeserver,user and password.If the user textbox is preset with the user info (found from mssql server) it won't send the mail. This...
6 Jan 2015 by Suresh Kumar MCA
Hi, I am new to EWS, i would like to work in EWS, but I cant connect with "@GMAIL.COM,@YAHOO.COM,@OUTLOOK.COM" which Email provider support with EWS.
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...
18 Nov 2014 by Mohammad Al Hoss
How to convert Exchange email message to byte array?thanks
17 Nov 2014 by donaldchandler89
We are backing up mailboxes on an Exchange 2007 server and have recently started seeing a backup error on one mailbox out of about 25.T-597: PtSend: cmd MbeF/msg RdBg: byte count 1041 exceeds maximum of 1024Trouble reading files, error -523 ( service transaction error)Anyone know what...
27 Oct 2014 by Member 11171743
You Can also try RecoveryFix for Exchange Server Recovery software that efficiently converts MS Exchange database (EDB) files to Outlook(PST)file format. The Software proficiently recover corrupt exchange edb file data and restore every items of Exchange Database. For any information visit here...
27 Oct 2014 by Member 10634821
I would suggest you to try free trial version of EDB to PST conversion tool. With this tool you can export data from EDB file to PST format in bunch. This application has ability to recover inaccessible mailbox from Exchange server and restore its data into working PST, New EDB, EML, MSG, PDF or...
26 Oct 2014 by JohnBradley
Here are few common export command samples: Export a single mailbox for user xxxx.xxxx to a directory c:\pstexport Export-Mailbox -Identity xxxx.xxxx -PstFolderPath c:\pstexportExport all mailboxes from a designated mailbox database Get-Mailbox -Database "mailbox database 0255331145"...
25 Oct 2014 by Mehdi Gholam
Connect via Outlook to those mail boxes and drag/drop the folders you want to a new PST file.http://office.microsoft.com/en-001/outlook-help/export-outlook-items-to-an-outlook-data-file-pst-HA102534110.aspx[^]
21 Oct 2014 by Kushan Randima
HiIs there a way to read email headers in Outlook Web Access (OWA)?. I want to read headers using C# for the selected mail item. Thanks for helping,Kushan Randima.Software EngineerDavton Ltd
29 Sep 2014 by LenJ67
Using PowerShell and EWS to write/update public folder contacts.
28 Sep 2014 by Suvabrata Roy
Hi,You may use : http://watin.org/[^]To automate your web browser and in the same way OWAThanks,Suvabrata
21 Sep 2014 by Mehdi Gholam
OST files are connected to an Exchange Server and are copies of the Exchange mailbox, so you can just create a new connection to the Exchange server and it will recreate the OST contents.
23 Jul 2014 by Charlesirwin1810
I need to configure my database mail, in SQL Server 2005, i was able to send mail using GMAIL, but i need to configure using my exchange server settingshow can i find the smtp server, port,authentication details from Exchange server and config DBMail in SQL Server
8 Jun 2014 by Ccsnow
Thank you for your answers,i wrote macro but it didnt work.i custumized menu(http://i.hizliresim.com/mlbvzy.png), i want to that if i click iwanttocliktenhttpxxxcom button, i want to go to http://www.abc.com. Thx.
8 Jun 2014 by karthik Udhayakumar
Ahmet,Check this link ,hope it solves# 6: Create hyperlinks for quick accesshttp://www.techrepublic.com/blog/10-things/10-ways-to-customize-outlook-menus-and-toolbars/[^]All the Best.Write back if this doesnt work or improve your question for better solutions
7 Jun 2014 by Ccsnow
i customized ribbon menu on my clients's outlook 2010, i want to that if i clicked custumized ribbon menu, it must go to https://abc.com. i searched i try to macro but i didnt do it.i found macro. but this is run appointment in outlook 2010. Public Sub OpenPublishedForm() Dim Items...
29 Apr 2014 by phil.o
Strange as you seem to have applied all workarounds apparently available.I noted a small difference, though: did you try to set the "from" attribute in "smtp" tag?
18 Apr 2014 by Member 10759207
We currently have Exchange 2007 with an already established domain. I have created a new website with new email addresses. How do I get the new domain emaail addresses to forward to the exsisting mailboxes?
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...
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.
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...
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
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.
19 Feb 2014 by Jagadeesh Bollabathini
Did you solved this problem?I am also facing this.Please help me, if you got it
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...
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 ...
3 Feb 2014 by TheITManager
I am trying to send an email using vb.net 2008 via our corporate exchange server and I am receiving the following message. Mailbox unavailable. The server response was: 5.7.1 Unable to relay for MyEmailAdrress@MyDomain.com. The email addresses are mine for the corporate domain, and the login...
2 Jan 2014 by ZurdoDev
This is not a code issue and you should ask Microsoft.
27 Dec 2013 by sandy_56
Hi All,I am creating the web application which will handle the creation/Modification of Public Folders in Outlook. This Web application will be having requests which we need to handle. I am thinking of using WWF for the same.As I am not familiar with WWF. Could you please help me for the...
18 Dec 2013 by Simone 1977
Exchange Web Services .NET offers properties to access to this field and also to other flag fields..
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...
8 Nov 2013 by Rakesh Meel
visit here....[^]
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