please help to Execute the vb.code when the mail came to our outlook inbox

5 views
Skip to first unread message

raja sekar

unread,
Apr 17, 2008, 1:22:52 AM4/17/08
to DotNetDe...@googlegroups.com
Dear all ,
 
I want to know that how to execute the a program when mail come to our inbox(outlook)
 
Thanks and regards
M.Rajasekar
 
please help me sooon

Jamie Fraser

unread,
Apr 17, 2008, 10:44:11 AM4/17/08
to DotNetDe...@googlegroups.com
Use the Microsoft Outlook Interop, write a class which subscribes to
the new mail event and performs an action. You didn't expect us to
write the code did you?

raja sekar

unread,
Apr 17, 2008, 12:11:39 PM4/17/08
to DotNetDe...@googlegroups.com
Thanks ,thanks a lot Jamie Fraser,thanks u very much


Did u have any example code regards this , means please send :)


thanks and regards
M.Rajasekar

Cerebrus

unread,
Apr 17, 2008, 12:31:58 PM4/17/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Grateful boy, this !

On Apr 17, 9:11 pm, "raja sekar" <rajasekar1...@gmail.com> wrote:
> Thanks ,thanks a lot *Jamie Fraser*,thanks u very much
>

Jamie Fraser

unread,
Apr 18, 2008, 4:28:31 AM4/18/08
to DotNetDe...@googlegroups.com

SeanJC

unread,
Apr 17, 2008, 3:47:31 PM4/17/08
to DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web Services,.NET Remoting
Jamie is write in that you need to use the Microsoft Office interop.

Just thought I would point your in the right direction

1. make sure your reference the Office Interop in your web.config file
(you will need to add a reference to do this)
2. create the instance on the page along the lines of Dim
outlookobject as Microsoft.Office.Interop.Outlook.Application

Although you may want to look into create an instance of the mail
alert rule, it is something like NewItemAlertRuleAction.

So in short make sure your create the reference in your project, then
create the instance and call its methods.

Hope This Helps
Sean
http://notjustajax.blogspot.com/

raja sekar

unread,
Apr 18, 2008, 5:07:16 AM4/18/08
to DotNetDe...@googlegroups.com
mmm :) i am very very happy ...this is very useful to me ,,,and i got output also ....i was in critical situation......thanks for u r help
 
 
again thank u very very very very very very much brother :) :D
 

thanks and regards
 
M.Rajasekar
 
Reply all
Reply to author
Forward
0 new messages