473,654 Members | 3,071 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Outlook events in vb.net

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.

Jul 21 '05 #1
2 4739
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 wrote:
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.

Jul 21 '05 #2
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

"sudheer" <su**********@i ndia.com> wrote in message
news:19******** *************** ******@phx.gbl. ..
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.

Jul 21 '05 #3

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

Similar topics

0
1738
by: Jeff Mikels | last post by:
Here is a python script to synchronize Palm Desktop Datebook files with Outlook's Calendar I'm releasing it under the Python license as version 0.1. -------------------------------------------------------------------------------- ''' palm2Outlook.py
13
2160
by: Joseph Kormann | last post by:
I'm building an application to retrieve emails. Which is better to use: CDO or the Outlook library? Thanks.
4
10076
by: Andy Bates | last post by:
Hi - I am developing an application that needs to automate Microsoft Outlook and I need to capture the ItemSend event. The PC I'm developing with has Outlook 2003 on; the problem I have is I need to make the code work with Outlook XP (i.e. 2002)! The code to add the event is currently: oOutlook.ItemSend += new Outlook.ApplicationEvents_11_ItemSendEventHandler
2
2378
by: Fernando Botelho | last post by:
Hi, Somebody would know to give information about to create an email with outlook (to create a email and open it in outlook) with C#? I would not like to use PIA of the Office, because I don't know which the version of the Outlook the users will be using. Therefore, it would like to know if exists some way to create an email and to open the same in outlook, without using the PIA.
2
2233
by: John | last post by:
Hi I am trying to find the way to create an email in outlook. I am using the code given at the end. It works fine the first time but calling the code second time gives the following error; Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW can...
2
414
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 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...
6
8764
by: Joseph Geretz | last post by:
I'm porting a C# Outlook Addin originally engineered as a COM Addin over to use VSTO. I've gotten this to the point where my VSTO Addin installs its Menu items and Toolbar buttons when Outlook launches. I've wired up my event handler to each Menu item and toolbar button. (I use the same Event handler and I use the Tag property which is different for every Menu Item and Toolbar buton to determine which menu or button is being clicked and to...
1
2394
by: skraps | last post by:
Do anybody know how to export events to Outlook from a php script? I'm making a list of events, and my idea is that when the user clicks on the event it will be exported to his or hers Outlook-calendar. I don't want to force the users to install any software (like a RSS-reader). Thanks in advance, Skraps
1
7948
by: keri | last post by:
Hi everyone, After numerous failed attempts at this I am now trying again to solve this problem. I really would appreciate ANY help as I have been stumped with this for weeks and weeks! I have a form (frmappointments) through which I create an appointment item in my outlook calendar, (and save the appointment to tblappointments in my database). The appid in my table is set to match the entryid of the outlook appointment item, using...
0
8380
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
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8497
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,...
1
6162
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
5627
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
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...
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1928
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1598
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.