Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Outgoing mail add disclaimer (http://www.outlookbanter.com/outlook-vba/37089-outgoing-mail-add-disclaimer.html)

leo January 8th 07 07:13 AM

Outgoing mail add disclaimer
 
Hello,

I'm not included in Exchange administrators group, but all of our users have
to add disclaimer in security statement for outgoing mails.

I would like to add the text at the end of the outgoing mails for all users
at the same time by group policy.

How can I do?

Sue Mosher [MVP-Outlook] February 1st 07 01:07 AM

Outgoing mail add disclaimer
 
Look at server-based solutions. See http://www.slipstick.com/addins/content_control.htm

--
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

"Leo" wrote in message ...
Hello,

I'm not included in Exchange administrators group, but all of our users have
to add disclaimer in security statement for outgoing mails.

I would like to add the text at the end of the outgoing mails for all users
at the same time by group policy.

How can I do?


Michael February 5th 07 01:27 PM

Outgoing mail add disclaimer
 
Hi,
I have the same problem, but I have to add a disclaimer right on the clients
once they create new mails, answer or forward mails, to avoid S/MIME
signature breaches.
Could you please advise what to do (or problably provide a small code
snippet? ;-) ) on how to achieve that?
I tried to add a signature within the new inspector but it won´t show up,
regardless what I tried.
Any hints would be very helpful.

Thanks in advance,
Michael

"Sue Mosher [MVP-Outlook]" wrote:

Look at server-based solutions. See http://www.slipstick.com/addins/content_control.htm

--
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

"Leo" wrote in message ...
Hello,

I'm not included in Exchange administrators group, but all of our users have
to add disclaimer in security statement for outgoing mails.

I would like to add the text at the end of the outgoing mails for all users
at the same time by group policy.

How can I do?



Sue Mosher [MVP-Outlook] February 5th 07 01:33 PM

Outgoing mail add disclaimer
 
Try using the Application_ItemSend event, and remember that your code would need to accommodate all three message formats -- plain text, HTML, and RTF. THere is no simple solution for this. See http://www.outlookcode.com/d/formatmsg.htm

--
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,
I have the same problem, but I have to add a disclaimer right on the clients
once they create new mails, answer or forward mails, to avoid S/MIME
signature breaches.
Could you please advise what to do (or problably provide a small code
snippet? ;-) ) on how to achieve that?
I tried to add a signature within the new inspector but it won´t show up,
regardless what I tried.
Any hints would be very helpful.

Thanks in advance,
Michael

"Sue Mosher [MVP-Outlook]" wrote:

Look at server-based solutions. See http://www.slipstick.com/addins/content_control.htm



"Leo" wrote in message ...
Hello,

I'm not included in Exchange administrators group, but all of our users have
to add disclaimer in security statement for outgoing mails.

I would like to add the text at the end of the outgoing mails for all users
at the same time by group policy.

How can I do?



Michael February 7th 07 08:18 AM

Outgoing mail add disclaimer
 
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

Sue Mosher [MVP-Outlook] February 7th 07 12:21 PM

Outgoing mail add disclaimer
 
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



All times are GMT +1. The time now is 06:49 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com