473,804 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Outlook Mailbox

Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed?

--
Thanks
-------------------
cz****@wsinc.co m
Nov 15 '05 #1
11 11999

Hi,

What about using IMAP ?

You can it from:
http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/
"Peter" <cz****@wsinc.c om> wrote in message news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed?

--
Thanks
-------------------
cz****@wsinc.co m
Nov 15 '05 #2

Hi Peter,

If you did not install the outlook, you can not use automation to get you
want. But you can use CDO(Collaborati on 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.

Nov 15 '05 #3
Jeffrey ,
Could be wrong, but IMO the CDO library is no longer a redistributable , so
you should install outlook or exchange client products.

Willy.

""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
news:PD******** ******@cpmsftng xa07.phx.gbl...

Hi Peter,

If you did not install the outlook, you can not use automation to get you
want. But you can use CDO(Collaborati on 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.

Nov 15 '05 #4
Jeffrey,
As Willy stated. CDO is not redistributable .

http://support.microsoft.com/default...b;en-us;171440

CDO is an optional install with Outook, so the OP would need to have Outlook
installed to use CDO.

Hope this helps
Jay

""Jeffrey Tan[MSFT]"" <v-*****@online.mi crosoft.com> wrote in message
news:PD******** ******@cpmsftng xa07.phx.gbl...

Hi Peter,

If you did not install the outlook, you can not use automation to get you
want. But you can use CDO(Collaborati on 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.

Nov 15 '05 #5
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/de...technology.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

"Peter" <cz****@wsinc.c om> wrote in message
news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Is there a way to read Outlook/Exchange Inbox with C# without Outlook
installed?

--
Thanks
-------------------
cz****@wsinc.co m
Nov 15 '05 #6
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.


"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:uT******** *******@TK2MSFT NGP11.phx.gbl.. .
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/de...technology.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

"Peter" <cz****@wsinc.c om> wrote in message
news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Is there a way to read Outlook/Exchange Inbox with C# without Outlook
installed?

--
Thanks
-------------------
cz****@wsinc.co m

Nov 15 '05 #7
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" <cz****@wsinc.c om> wrote in message
news:e7******** *****@TK2MSFTNG P09.phx.gbl... 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>>
Nov 15 '05 #8
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.
"Ivar" <iv**@lumisoft. ee> wrote in message news:uG******** ******@TK2MSFTN GP10.phx.gbl...

Hi,

What about using IMAP ?

You can it from:
http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/
"Peter" <cz****@wsinc.c om> wrote in message news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed?

--
Thanks
-------------------
cz****@wsinc.co m
Nov 15 '05 #9
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.Tex t,m_pPassword.T ext);

---------------------------
Error
---------------------------
Error:Server returned:NO There is no such mailbox on this server
---------------------------
OK
---------------------------
"Ivar" <iv**@lumisoft. ee> wrote in message news:uG******** ******@TK2MSFTN GP10.phx.gbl...

Hi,

What about using IMAP ?

You can it from:
http://www.lumisoft.ee/lsWWW/Download/Downloads/Net/
"Peter" <cz****@wsinc.c om> wrote in message news:%2******** **********@TK2M SFTNGP09.phx.gb l...
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed?

--
Thanks
-------------------
cz****@wsinc.co m
Nov 15 '05 #10

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

Similar topics

11
12095
by: Google Mike | last post by:
I've got RH9 Linux with default PHP. Is there a way to send email on Linux to an Exchange Server from PHP and/or other tools when there is *NOT* SMTP access? Has anyone figured out a way to use PHP to get inside an OWA (Microsoft Outlook Web Access) website to send email that way? The reason I ask is because my corporate office is going to do away with our rogue SMTP server access and force everything through Exchange
2
10550
by: Roger | last post by:
I am creating an application that will sit on a client pc and monitor the inbox. When an e-mail enters the inbox, then an even will be fired and I will then be able to process the mail. I have the following code that does fire the eventhandlerNewMail, but I don't know how to do the following 2 things... 1. Get the NewMail object so I can look at the mailitems Subject, From etc...
1
4343
by: Roger | last post by:
I currently have an application that can monitor the Inbox of one mailbox running on a client using Outlook 2003. This is a standalone application that needs Outlook to be running in order to see all mail coming into the e-mail box. This is using Interop.Outlook Example of code... Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
0
1029
by: Roger | last post by:
I currently have an application that can monitor the Inbox of one mailbox running on a client using Outlook 2003. This is a standalone application that needs Outlook to be running in order to see all mail coming into the e-mail box. Example of code... Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load AddHandler m_Olapp.NewMail, AddressOf Me.eventhandlerNewMail End Sub
4
6692
by: Pieter | last post by:
Hi, On the pc of one of my clients (W2000, Office 2003) I'm getting sometimes an exception when moving (Move) a MailItem to an Outlook-Folder: The RPC server is not available. (Exception from HRESULT: 0x800706BA). The client has all the updates/service packs/ etc isntalled... Does anybody has any idea why this happens? Any help our hints would be really appreciated! what is that RPC server thing?
3
1722
by: tshad | last post by:
I have a program that is reading one of my mailboxes. It is polling the mailboxes ever 5 minutes to see if there is a message or not. Is this how Outlook does it (using Exchange as the server)? It doesn't seem to. When a message gets to Exchange, it seems to do some type of Push to Outlook as Outlook has it immediately. If so, ss there a way to make my program do that in VS. We are getting
1
3226
by: =?Utf-8?B?cm9i?= | last post by:
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook Problem: I have my outlook 2003 configured with multiple mailbox on my local machine. I want to specify the mailbox and server (Exchange server mail box) to connect and then save the mailitems(from Inbox or any other folder) based on a filter to a*.msg file. I want to achieve this using only one Interop dll if this is possible. Tried so far:
1
2872
by: allbelonging | last post by:
C#.Net Outlook 2003 automation (programmatically) with Office.Interop.Outlook Problem: I have my outlook 2003 configured with multiple mailbox on my local machine. I want to specify the mailbox and server (Exchange server mail box) to connect and then save the mailitems(from Inbox or any other folder) based on a filter to a*.msg file. I want to achieve this using only one Interop dll if this is possible. Tried so far:
0
1530
by: DianaC | last post by:
Hi. I have to generate and send emails from C#.net 2.0 and have to use outlook. I am using Redemption to bypass the outlook security checks, but have the same problem when using CDO. I create an RDO session for a mailbox, send the message on its behalf, and then have to change mailbox, and send different message on behalf of the second mailbox. Despite logging off the RDO session, and setting it to null, outlook remains open between the two...
4
6466
by: infomage27 | last post by:
I have tried scripting this with rules and VBA, now trying with C# but still failing. (code is exploratory, so please excuse the terribleness) maybe someone here will show me the error of my code... sending an email by hand - everything works as expected (rules, VBA, etc are all applied). sending an email from code (C#, external VBA, etc) has the messages saving in Sent Items regardless of any other settings or configurations (up to...
0
9715
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9595
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10354
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9175
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7642
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.