How to read exchange inbox with c#

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have to write an application that run once a day that can read all new
mails on an exchange special inbox. Then I have to get the
subject,attachments,date etc from each email .

How can I do it ?

I use vs 2005. We have exchange 2003 .

Thanks,

David
 
That depends on how you have exchange configured. If you configure Exchange
to support Pop access then you could just log in and download the e-mails
pretty easily. The indy project (http://www.indyproject.org) has some good
..Net e-mail classes.
 
Andrew Faust said:
That depends on how you have exchange configured. If you configure Exchange
to support Pop access then you could just log in and download the e-mails
pretty easily. The indy project (http://www.indyproject.org) has some good
.Net e-mail classes.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


DavidE said:
Hi,
I have to write an application that run once a day that can read all new
mails on an exchange special inbox. Then I have to get the
subject,attachments,date etc from each email .

How can I do it ?

I use vs 2005. We have exchange 2003 .

Thanks,

David
 
Hi Andrew,

Thanks for your reply.
Before I use those classes I have to access the exchange server first.
I didn't found a way to access a remote exchange. The exchange server
resides in our domain and I have to access it from another machine.
I found one way that uses MAPI but I don't found what namespace contain it .
http://www.csharphelp.com/board2/read.html?f=1&i=36743&t=36743

David

Andrew Faust said:
That depends on how you have exchange configured. If you configure Exchange
to support Pop access then you could just log in and download the e-mails
pretty easily. The indy project (http://www.indyproject.org) has some good
.Net e-mail classes.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


DavidE said:
Hi,
I have to write an application that run once a day that can read all new
mails on an exchange special inbox. Then I have to get the
subject,attachments,date etc from each email .

How can I do it ?

I use vs 2005. We have exchange 2003 .

Thanks,

David
 
Sorry, I've never worked with MAPI so can't help you there. I did find a
blog that seems relevant to what you need. The page I link below in
particular uses C# to connect to exchange and do stuff like query a mailbox
size. It looks like there are other articles that will be relevant such as
"Syncronize items from a public folder to a mailbox folder"

http://gsexdev.blogspot.com/2005/03/c-wmi-exchange-samples.html

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


DavidE said:
Hi Andrew,

Thanks for your reply.
Before I use those classes I have to access the exchange server first.
I didn't found a way to access a remote exchange. The exchange server
resides in our domain and I have to access it from another machine.
I found one way that uses MAPI but I don't found what namespace contain
it .
http://www.csharphelp.com/board2/read.html?f=1&i=36743&t=36743

David

Andrew Faust said:
That depends on how you have exchange configured. If you configure
Exchange
to support Pop access then you could just log in and download the
e-mails
pretty easily. The indy project (http://www.indyproject.org) has some
good
.Net e-mail classes.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


DavidE said:
Hi,
I have to write an application that run once a day that can read all
new
mails on an exchange special inbox. Then I have to get the
subject,attachments,date etc from each email .

How can I do it ?

I use vs 2005. We have exchange 2003 .

Thanks,

David
 
Hi Andrew,

Thanks for your help .

David

Andrew Faust said:
Sorry, I've never worked with MAPI so can't help you there. I did find a
blog that seems relevant to what you need. The page I link below in
particular uses C# to connect to exchange and do stuff like query a mailbox
size. It looks like there are other articles that will be relevant such as
"Syncronize items from a public folder to a mailbox folder"

http://gsexdev.blogspot.com/2005/03/c-wmi-exchange-samples.html

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


DavidE said:
Hi Andrew,

Thanks for your reply.
Before I use those classes I have to access the exchange server first.
I didn't found a way to access a remote exchange. The exchange server
resides in our domain and I have to access it from another machine.
I found one way that uses MAPI but I don't found what namespace contain
it .
http://www.csharphelp.com/board2/read.html?f=1&i=36743&t=36743

David

Andrew Faust said:
That depends on how you have exchange configured. If you configure
Exchange
to support Pop access then you could just log in and download the
e-mails
pretty easily. The indy project (http://www.indyproject.org) has some
good
.Net e-mail classes.

--
Andrew Faust
andrew[at]andrewfaust.com
http://www.andrewfaust.com


Hi,
I have to write an application that run once a day that can read all
new
mails on an exchange special inbox. Then I have to get the
subject,attachments,date etc from each email .

How can I do it ?

I use vs 2005. We have exchange 2003 .

Thanks,

David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top