Exchange email

  • Thread starter Thread starter Jason
  • Start date Start date
J

Jason

Hi all

I have wrote a small email client that checks POP3 email (using username and
password). this work fine.
I would now like to add the functionality to check email on an exchange
server, that is to use the NT username at that moment, connect to the local
exchange server and then pull the email "off" the exchange server. pull it
off, as in the email is deleted off the exchange server. preferably to pull
it off the exchange server in the raw text (like POP3) so i can do whatever
i want with it from there.

anywhere i can read up on this, or any sample code anyone has for me?

Thanks
Jason
 
Jason,

I think you will want to use CDO through COM interop to do this. The
classes in the System.Web.Mail namespace do not have the ability to access
exchange stores directly (as opposed to a POP3 interface).

Hope this helps.
 
doesnt really help, but thanks :-)

so how would i access the exchange store directly? i am sure it's possible?

Thanks again
Jason

Nicholas Paldino said:
Jason,

I think you will want to use CDO through COM interop to do this. The
classes in the System.Web.Mail namespace do not have the ability to access
exchange stores directly (as opposed to a POP3 interface).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jason said:
Hi all

I have wrote a small email client that checks POP3 email (using username and
password). this work fine.
I would now like to add the functionality to check email on an exchange
server, that is to use the NT username at that moment, connect to the local
exchange server and then pull the email "off" the exchange server. pull it
off, as in the email is deleted off the exchange server. preferably to pull
it off the exchange server in the raw text (like POP3) so i can do whatever
i want with it from there.

anywhere i can read up on this, or any sample code anyone has for me?

Thanks
Jason
 
Jason,

You have two options. The first is CDO, the other is to access MAPI
directly. However, you might have a problem, because programs outside of
Outlook have security dialogs thrown up when those APIs are accessed outside
of Outlook.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jason said:
doesnt really help, but thanks :-)

so how would i access the exchange store directly? i am sure it's possible?

Thanks again
Jason

message news:%2328%[email protected]...
Jason,

I think you will want to use CDO through COM interop to do this. The
classes in the System.Web.Mail namespace do not have the ability to access
exchange stores directly (as opposed to a POP3 interface).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jason said:
Hi all

I have wrote a small email client that checks POP3 email (using
username
and
password). this work fine.
I would now like to add the functionality to check email on an exchange
server, that is to use the NT username at that moment, connect to the local
exchange server and then pull the email "off" the exchange server.
pull
 
does this also mean i have to have outlook installed?
Thanks again

Nicholas Paldino said:
Jason,

You have two options. The first is CDO, the other is to access MAPI
directly. However, you might have a problem, because programs outside of
Outlook have security dialogs thrown up when those APIs are accessed outside
of Outlook.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jason said:
doesnt really help, but thanks :-)

so how would i access the exchange store directly? i am sure it's possible?

Thanks again
Jason

message news:%2328%[email protected]...
Jason,

I think you will want to use CDO through COM interop to do this. The
classes in the System.Web.Mail namespace do not have the ability to access
exchange stores directly (as opposed to a POP3 interface).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Hi all

I have wrote a small email client that checks POP3 email (using username
and
password). this work fine.
I would now like to add the functionality to check email on an exchange
server, that is to use the NT username at that moment, connect to the
local
exchange server and then pull the email "off" the exchange server.
pull
it
off, as in the email is deleted off the exchange server. preferably to
pull
it off the exchange server in the raw text (like POP3) so i can do
whatever
i want with it from there.

anywhere i can read up on this, or any sample code anyone has for me?

Thanks
Jason
 

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