473,748 Members | 2,502 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Read and flag Email from MS Exchange server

Greetings,
I am using C# to write a windows service that will periodically scan the
exchange server for emails,fetch them, process the information in the emails
and flag them after processing.
I would appreciate if anyone reading this post can point me to some code
that will read emails from an Exchange server please. Also, most of the help
on the support on the MSDN site is making use of CDO for Exchange server. I
am developing on Windows XP professional and do not have CDO for Exchange
Server. The deployment server will not have exchange installed on it. I also
do not have any idea how to get the CDO for Exchange Server installed on my
machine without installing Exchange Server.
Any help that can make me proceed further is appreciated. As of now, it
looks like I cannot move.

Thanks and regards,
Seshadri.
Nov 16 '05 #1
4 13200
Seshadri wrote:
I am using C# to write a windows service that will periodically
scan the exchange server for emails,fetch them, process the
information in the emails and flag them after processing.


I looked into doing that for a project a while ago (which also retrieves and
processes emails from an Exchange server).

It can be done, but after considering the Exchange-specific methods and
seeing how hairy they were, I took the easy way out and designed my
application for the POP3 protocol (which Exchange supports). The
functionality available over POP3 is limited, but it is enough to retrieve
emails to process, mark them read, or delete them -- that was all I really
needed.

If that is all you need to do, then POP3 could be the easiest solution for
you, too.

--
Chris Priede (pr****@panix.c om)
Nov 16 '05 #2
Hi Chris,
Thank you for the reply. I guess my requirements are similar too. Retrieve,
read and mark the email messages on an Excange server. If you could point me
to some code or links that you have used, it will be very helpful.
I tried searching on the internet but I am getting swamped with unwanted
information. Thank you once again for thereply and help.

- Seshadri.

Nov 16 '05 #3
Seshadri wrote:
Hi Chris,
Thank you for the reply. I guess my requirements are similar too.
Retrieve, read and mark the email messages on an Excange server. If
you could point me to some code or links that you have used, it will
be very helpful.


I used the POP3 component from these guys:

http://www.emailarchitect.net/webapp/popcom/

I wouldn't say it's the most elegant component I've ever seen, but it works
fine. It wouldn't be all that difficult to develop your own POP3 protocol
implementation if you are familiar with socket programing -- the protocol
itself is very simple.

--
Chris Priede (pr****@panix.c om)

Nov 16 '05 #4
Seshadri <Se******@discu ssions.microsof t.com> wrote:
Thank you for the reply. I guess my requirements are similar too. Retrieve,
read and mark the email messages on an Excange server. If you could point me
to some code or links that you have used, it will be very helpful.
I tried searching on the internet but I am getting swamped with unwanted
information. Thank you once again for thereply and help.


You might find IMAP better than POP3 for working with Exchange server -
there are plenty of examples (as well as commercial libraries) out there
for example :

http://www.codeproject.com/csharp/IMAPLibrary.asp

/J\
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3055
by: Rob Meade | last post by:
Hi all, I have no knowledge of Exchange server, and have always used CDO to send emails from ASP in the past. My problem now is that the server in question doesn't have SMTP installed alongside IIS, it has Exchange installed which apparantly does have SMTP capabilities but not like the default ones normally accessbile via IIS. Has anyone ever used this approach to sending emails? I'm hoping that I dont need a component or anything...
62
3440
by: Bryan Dickerson | last post by:
Is there a way, with VS 2005 and FX 2.0, to read a given inbox? I need to write a 'monitor' program and my boss is convinced, as is always his first gut reaction, that we need to go buy a 3rd-party package to just read an inbox. He may be right this time, but that's not usually my first gut reaction--we've had too many good employees around here fired 'cause they spent too much money on albatross software (another soapbox, sorry). I need...
0
9534
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9366
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9316
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8239
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6073
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4597
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3303
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2211
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.