Reply and Forward won't help you with completely new messages. If you want to take that approach, then use the Inspectors.NewInspector and Inspector.Activate events. But be prepared for people to delete the disclaimer.
Doing it at the server is the only way to ensure that it is actually attached to each message.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx
"Michael" wrote in message ...
Hi Sue,
thank you for your quick answer. I found out that another COM-Addin occupies
the Send Event so that I am not able to determine what Addin comes and serves
first.
Now, I tried to use the mail.read event in my own COM-Addin, or the
mail.forward, the mail.reply or the mail_replytoall event, having in mind
that the users can see and delete the disclaimer. What I now noticed is that
the event does not get hit at all....
HereĀ“s a small excerpt what I tried:
...
Dim WithEvents oMail As Outlook.MailItem 'Declared in Public Class Connect
...
Private Sub oMail_Forward(ByVal oItem As Object, ByRef cancel As Boolean)
Handles oMail.Forward
Dim eMail As Outlook.MailItem
If TypeOf oItem Is Outlook.MailItem Then
eMail = CType(oItem, Outlook.MailItem)
eMail.Body = "Test Body" & eMail.Body
End If
End Sub
... was I completely wrong?
Thanks again for any hint...
Michael