468,765 Members | 1,499 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,765 developers. It's quick & easy.

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 3898
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by sudheer | last post: by
11 posts views Thread by Peter | last post: by
7 posts views Thread by Dean Spencer | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.