Outlook events in vb.net

  • Thread starter Thread starter sudheer
  • Start date Start date
S

sudheer

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 this type of task? I mean to say is it
possible to append some text in outlook inbox messages.If
yes, could you please provide a script which does this
task. The application which i'm intended to develop is
windows service application. And at the smaetime i want to
know the source code of outlook events in vb.net. Your co-
operation and help is highly appreciated.
 
Sudheer,
Outlook still runs on COM and not .NET so I am not sure on how the
events are triggered and which ones you can hook into. But you would
need to interop from .NET to COM to use Outlook.

To answer your other question, yes you can modify the contents of an
existing email, but unless you can be more specific on what you plan to
do with it, this info. is meaningless.

If you want more info. I would recommend checking out the following two
sites as a starting point:
http://msdn.microsoft.com/office/understanding/outlook/
http://www.codeproject.com/csharp/OutlookConnector.asp

Regards,
Amit.
http://www.desigeek.com
 
Sudheer,
For information on using Outlook from .NET see:

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


However you may have a number of problems with your app.

1. Modifing messages in your inbox may cause the Security prompt, warning of
a possible virus.
2. Using Outlook from a Windows Service is simply not supported, as Outlook
requires a profile to log in, and the account Windows Services normally use
do not have a profile, plus Outlook OOM may display a dialog (security
prompt)

Properly constructed Outlook 2003 COM add-ins will avoid the security
prompts.

Hope this helps
Jay
 
Back
Top