473,508 Members | 2,295 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 13186
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.com)
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.com)

Nov 16 '05 #4
Seshadri <Se******@discussions.microsoft.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
3042
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...
62
3378
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...
0
7228
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7128
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7393
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...
1
7058
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...
1
5057
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4715
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...
0
3191
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
769
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
426
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...

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.