473,509 Members | 3,075 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Outlook Monitor Inbox of multiple mailboxes is it possible?

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
AddHandler m_Olapp.NewMail, AddressOf Me.eventhandlerNewMail
End Sub
Public Sub eventhandlerNewMail()
' Here is the event that gets called
end sub.

Now this will monitor just my mailbox. I also have access to 10+ other
email boxes that show up on my Outlook. How can I get an event fired for
each mailbox inbox? Is it possible? Can I tell which mailbox got the
event?

Thanks,

Rog
Nov 21 '05 #1
1 4321
Hello Roger,

you have different options.
You can use the folder.Items.Add event for your inboxes or do a general
search for unread items after a send/receive or from an external application
in a time intervall.

Don't know if this helps, i have posted an example for doin' this with C#
AddIn here:

http://www.outlookcode.com/codedetail.aspx?id=795

--
regards

Helmut Obertanner
Technical Consultant

Softwaredevelopment
DATALOG Software AG | Zschokkestr. 36 | D-80687 Munich
web: www.datalog.de
.... and IT works!

"Roger" <da*****@netins.net> schrieb im Newsbeitrag
news:O0**************@TK2MSFTNGP09.phx.gbl...
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
AddHandler m_Olapp.NewMail, AddressOf Me.eventhandlerNewMail
End Sub
Public Sub eventhandlerNewMail()
' Here is the event that gets called
end sub.

Now this will monitor just my mailbox. I also have access to 10+ other
email boxes that show up on my Outlook. How can I get an event fired for
each mailbox inbox? Is it possible? Can I tell which mailbox got the
event?

Thanks,

Rog

Nov 21 '05 #2

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

Similar topics

2
4729
by: sudheer | last post by:
Hi, Thank you in advance. I need to devlop an application, which reads the outlook inbox messages and appends some additional message to the read messages. I want to know is it possible to do...
11
11977
by: Peter | last post by:
Is there a way to read Outlook/Exchange Inbox with C# without Outlook installed? -- Thanks ------------------- czupet@wsinc.com
2
10503
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...
0
1015
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...
4
3501
by: Tarren | last post by:
Hi, All: I am tasked with the following. I need to write a service to monitor an Exchange mailbox and take action when an email is received, put it in a db, etc. I do not need to send emails...
7
6781
by: Dean Spencer | last post by:
Can anyone help? I am importing Emails from Outlook using the following code: Public Function ScanInbox(SubjectLine As String) Dim TempRst As Recordset Dim OlApp As Outlook.Application Dim...
3
1690
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...
1
3208
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...
1
2837
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...
0
7234
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
7136
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
7412
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7505
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...
0
5652
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
4730
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...
0
3216
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...
0
3203
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
441
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...

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.