Outlook Mailbox

  • Thread starter Thread starter Peter
  • Start date Start date
Hi Peter,

If you did not install the outlook, you can not use automation to get you
want. But you can use CDO(Collaboration Data Objects) to access the inbox.
The article below "HOWTO: Use CDO (1.x) to Get Source Message from
Non-Delivery Receipt (NDR)" shows you a sample:
http://support.microsoft.com/?id=191365

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Jeffrey ,
Could be wrong, but IMO the CDO library is no longer a redistributable, so
you should install outlook or exchange client products.

Willy.
 
Peter,
Are you asking on the server where Exchange Server is installed or on a
user's PC talking to a "remote" machine where Exchange Server is installed?

For a user's PC you can use POP3, IMAP4 or WebDAV. I understand WebDAV is
more powerful/flexible then the first two, plus it uses XML ;-)

On the machine where Exchange Server is installed, and you can use CDO 1.21
via interop (Jeffrey's link).

The following site includes a good overview of most Microsoft Exchange
Technologies.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_techsel_bytechnology.asp

The following site includes a plethora of links about using Outlook & CDO
from .NET.

http://www.microeye.com/resources/res_outlookvsnet.htm

As was previously stated, to use CDO 1.21 on a client you need to install
Outlook, as that & Exchange Server itself is the only way to get it
installed. If you have the older Exchange 5.0 client, you can install that &
get CDO 1.1, however you are still required to install a client on
individual PCs... Also CDO 1.1 is a few revs behind...

Hope this helps
Jay

Is there a way to read Outlook/Exchange Inbox with C# without Outlook
installed?
 
Thanks for your help!

This application will be running on a W2K server / not the same as Exchange
server. We are running Exchange 5.5 and I would like to monitor one of the
mail boxes. The W2K server is running an EDI application and we don't want
to install any office applications as this EDI application is sometime
finicky so I don't want to introduce any variables. This server has NET 1.1
installed and we had no problems with .NET so far.

I have not heard anything about WebDAV so I don't know what it is or how to
use it. Can I use WebDAV with Exchange 5.5 and can I move messages from
Inbox to different folders?


Thank you.
 
Peter,
This application will be running on a W2K server / not the same as Exchange
server. We are running Exchange 5.5 and I would like to monitor one of the
mail boxes.
Have you considered using Exchange Server Scripting? And instead of a
mailbox, a public folder address, you can even associate an SMTP address
with a public folder...
I have not heard anything about WebDAV so I don't know what it is or how to
use it. Can I use WebDAV with Exchange 5.5 and can I move messages from
Inbox to different folders?
Unfortunately I am predominately client side, I have not used WebDAV, the
link I gave has a link to some WebDAV info, I will check for some other
links for you.

More later.

Hope this helps
Jay

Peter said:
Thanks for your help!

This application will be running on a W2K server / not the same as Exchange
server. We are running Exchange 5.5 and I would like to monitor one of the
mail boxes. The W2K server is running an EDI application and we don't want
to install any office applications as this EDI application is sometime
finicky so I don't want to introduce any variables. This server has NET 1.1
installed and we had no problems with .NET so far.

I have not heard anything about WebDAV so I don't know what it is or how to
use it. Can I use WebDAV with Exchange 5.5 and can I move messages from
Inbox to different folders?


Thank you.
<<snip>>
 
Thanks for your help.

This looks promising, I'll have to check it out to see if I can move messages to different folders.

One problem I ran into with the Lumisoft library is when I am trying to read messages from the Inbox, when I step through the code everything works just fine, but when I run it normally the CPU goes to 100% and the call never returns with the Inbox messages.

Hi,

What about using IMAP ?

You can it from:
http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed?
 
When using Limisoft libraries I get the following error message when I try to loging with different user ID then my own using this method:
c.Authenticate(m_pUserName.Text,m_pPassword.Text);

---------------------------
Error
---------------------------
Error:Server returned:NO There is no such mailbox on this server
---------------------------
OK
---------------------------



Hi,

What about using IMAP ?

You can it from:
http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed?
 
Hi Peter,

There are much information in the MSDN, the link below tells you how to
Sending a Message through WebDav, You can find more information about
WebDav in the related articles in the same column of this article.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_es
dk_sending_a_message_webdav.asp

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Hi Peter,

We have no source code of his product, I think you need to contact him for
more information.
Acutally, you can get what you want through MAPI.
There are many samples of MAPI, you can install them on your machine. The
sample below tells you how to:
Send and read messages, list the contents of the Inbox, and view the
address book
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mapi/html/_
mapi1book_sample_cmc_client.asp

Also, the article below tells you how to Getting the Size of a Mailbox:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/e2k3/e2k3/_
esdk_getting_mailbox_size_webdav.asp

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top