473,410 Members | 1,889 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,410 software developers and data experts.

Retrieve mail from Exchange 2000/5.5 using C#

Rob
Hi all,

I have done a lot of researching on the above topic and the only think
I now know for sure is that I have to use either CDO or MAPI.

What I need to do is this: I want to write a C# desktop application
that will connect to the exchange server and retrieve mail from an
inbox. The features are as follows:
1) I need to be able to specify the URL of the server I am connecting
to
2) I need to be able to specify the inbox I want (I have different
users and they will want to connect to different mailboxes)
3) I DO NOT want to use any sort of profile (if possible)
4) I'd like it to work for exchange 5.5 and 2000

So pretty much what I want say is this
- Connection to exchange server at
http://test.environment.com/exchange
- My user name is "bob", may password is "123"
- Bob's inbox is opened (next time I may want to connect to Sue or
Mary's inbox)
- I can retrieve Bob's mail

Any ideas? Actual code would be really useful.

Thanks
Nov 16 '05 #1
1 2117
Have you looked at WebDAV? I know it works against Exchange 2000. Not sure
about Exchange 5.5. This completely relieves you from having a client-side
control. Using WebDAV is essentially the same as using Outlook Web Access
from an application, so there are some interesting gyrations (like
simulating a form login).

I'll see if I can find the code.

--- Nick

"Rob" <ro********@gmail.com> wrote in message
news:a7**************************@posting.google.c om...
Hi all,

I have done a lot of researching on the above topic and the only think
I now know for sure is that I have to use either CDO or MAPI.

What I need to do is this: I want to write a C# desktop application
that will connect to the exchange server and retrieve mail from an
inbox. The features are as follows:
1) I need to be able to specify the URL of the server I am connecting
to
2) I need to be able to specify the inbox I want (I have different
users and they will want to connect to different mailboxes)
3) I DO NOT want to use any sort of profile (if possible)
4) I'd like it to work for exchange 5.5 and 2000

So pretty much what I want say is this
- Connection to exchange server at
http://test.environment.com/exchange
- My user name is "bob", may password is "123"
- Bob's inbox is opened (next time I may want to connect to Sue or
Mary's inbox)
- I can retrieve Bob's mail

Any ideas? Actual code would be really useful.

Thanks

Nov 16 '05 #2

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

Similar topics

1
by: JSzucs | last post by:
I wrote a little code snipet in Asp.Net to send a default message to my outlook email address. That works fine, since the SMTP virtual server default domain is same domain as my outlook mail...
1
by: Jim in Arizona | last post by:
I have no idea how to get started, really, but I am looking for a way to have an email sent via an ASP page via our Exchange 2000 server. I have a fairly simple asp page that displays data from a...
1
by: dananrg | last post by:
I would like to configure e-mail alerts on my SQL Server 2000 box. However, we also run Exchange on the same machine. I've been told there could be conflicts/issues having Outlook on the same...
3
by: Le | last post by:
So here's my dilemma. I need an automated SQL Server (2000) job that runs once once per hour. This jobs should: 1) Retrieve unread email for the user "Le" from our Exchange Server, and insert...
2
by: Leonard | last post by:
I am using SmtpMail on a couple of ASP.NET pages. When mail is sent to an address outside the domain I get the "Could not access 'CDO.Message' object." error message. I have looked in the...
1
by: Sospeter | last post by:
Hi, I want to connect to a mail store from an ASP.NET application. Once I connect to the mail store I want to be able to retrieve a message from a particular user. The problem I have is I don't...
3
by: Richard Thornley | last post by:
Hello, I was just been given a project and I have some questions on how to accomplish the first part of the task. If a user sends an email to a specific email address I need to detect...
1
by: Jim in Arizona | last post by:
I've built a small IT helpdesk ticket system using the .NET 2.0 Beta 2 framework w/VS 2005 Beta 2. This system sits on an IIS 5.0 server, fully patched. The IIS server is set for windows inegrated...
11
by: Dennis | last post by:
I am using the following code that I got from this newsgroup to start a user's default e-mail editor and it works ok. However, I would like to attach a file to the editor (like using word as...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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,...
0
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
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...

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.