RE: Disclaimers

  • From: "Rene Fisher" <Rene_Fisher@xxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Tue, 30 Aug 2005 13:37:44 -0600

Here are a few suggestions 

http://support.microsoft.com/default.aspx?scid=kb;en-us;317327&Product=e
xch2003

 Add a Disclaimer to Outgoing SMTP Messages in Exchange with a Visual
Basic Script
  

This step-by-step article shows how to use an SMTP transport event sink
to add a disclaimer to outgoing SMTP e-mail messages. This is great for
companies that want to add a legal disclaimer saying that all email is
private, for business use, etc. Warning: Test this script in a test
environment to understand the effect of the script before attempting it
in a production environment. The steps are:

1. Create the Event Sink
2. Register the Event Sink
3. Test the Event Sink

Create the Event Sink
To create an event sink, paste the following code in a new file and save
it as EventSinkScript.vbs: 
<SCRIPT LANGUAGE="VBScript">

Sub ISMTPOnArrival_OnArrival(ByVal Msg, EventStatus)

TextDisclaimer = vbCrLf & "DISCLAIMER:" & vbCrLf & "Sample Disclaimer
added in a VBScript."

HTMLDisclaimer = "<p></p><p>DISCLAIMER:<br>Sample Disclaimer added in a
VBScript."

If Msg.HTMLBody <> "" Then
'Search for the "</body>" tag and insert our disclaimer before that tag.
pos = InStr(1, Msg.HTMLBody, "</body>", vbTextCompare)
szPartI = Left(Msg.HTMLBody, pos - 1)
szPartII = Right(Msg.HTMLBody, Len(Msg.HTMLBody) - (pos - 1))
Msg.HTMLBody = szPartI + HTMLDisclaimer + szPartII

Msg.TextBody = Msg.TextBody & vbCrLf & TextDisclaimer & vbCrLf
Else
Msg.TextBody = Msg.TextBody & vbCrLf & TextDisclaimer & vbCrLf
End If

'Commit the content changes to the transport ADO Stream object.
Msg.DataSource.Save ' Commit the changes into the transport Stream

pEventStatus = cdoRunNextSink
End Sub
</SCRIPT>

Register the Event Sink
To register your event sink, use the Smtpreg.vbs file, which is
installed with the Exchange SDK. From a command prompt, browse to the
..\Exchange SDK\SDK\Support\CDO\Scripts folder and type the following
(make sure that the path to EventSinkScript.vbs is correct): 

cscript smtpreg.vbs /add 1 onarrival SMTPScriptingHost
CDO.SS_SMTPOnArrivalSink "mail from=*"
cscript smtpreg.vbs /setprop 1 onarrival SMTPScriptingHost Sink
ScriptName "C:\EventSinkScript.vbs"

If the command succeeds, you receive a success message generated by the
script.

To unregister this event, type the following: 

cscript smtpreg.vbs /remove 1 OnArrival SMTPScriptingHost

For more information on registering events with Smtpreg.vbs, see the
"Managing Event Bindings" topic at the following MSDN Web site: 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/
html/_cdosys_managing_event_bindings.asp

Test the Event Sink
To test your sink, send an e-mail message to an SMTP recipient who is
external to your organization. The recipient should receive a modified
message with the disclaimer added to the end of the message. 
For additional information, click the article number below to view the
article in the Microsoft Knowledge Base: 

SMTP Transport Event Does Not Fire For MAPI Messages - Q288756 

Add a Disclaimer to Outgoing SMTP Messages in Visual Basic Script -
Q317680 

For a Microsoft Visual Basic version of this article, see Q317327. 

Thanks go out to Jeff Guillet from Convergent Computing for his help on
this!


-----Original Message-----
From: Marc A. Mapplebeck [mailto:mmapplebeck@xxxxxxxxxx] 
Sent: Tuesday, August 30, 2005 1:27 PM
To: [ExchangeList]
Subject: [exchangelist] RE: Disclaimers

http://www.MSExchange.org/

GFI Mail Essentials
http://www.gfi.com/mes/
It also has this nifty feature of SPAM filtering. :P
 - Marc 

-----Original Message-----
From: Alex Gonzalez [mailto:AGonzalez@xxxxxxxxxxxxxxxxxxx]
Sent: August 30, 2005 16:00
To: [ExchangeList]
Subject: [exchangelist] Disclaimers

http://www.MSExchange.org/

Anyone have a good tip on putting disclaimers on email's using Exchange
other than signatures?  It's for Ex2003.
 
Thanks,
 
Alex 

------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
mmapplebeck@xxxxxxxxxx To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx


------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
------------------------------------------------------
Visit TechGenix.com for more information about our other sites:
http://www.techgenix.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
rene_fisher@xxxxxx To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx


------------------------------ IMPORTANT NOTICE - AVIS IMPORTANT 
------------------------------
Computer viruses can be transmitted via email. Recipient should check this 
email and any attachments for the presence of viruses. Sender and sender 
company accept no liability for any damage caused by any virus transmitted by 
this email.
This email transmission and any accompanying attachments contain confidential 
information intended only for the use of the individual or entity named above.  
Any dissemination, distribution, copying or action taken in reliance on the 
contents of this email by anyone other than the intended recipient is strictly 
prohibited.  If you have received this email in error please immediately delete 
it and  notify sender at the above email address.

Le courrier electronique peut etre porteur de virus informatiques.  Le 
destinataire doit donc passer le present courriel et les pieces qui y sont 
jointes au detecteur de virus.  L' expediteur et son employeur declinent toute 
responsabilite pour les dommages causes par un virus contenu dans le courriel.
Le present message et les pieces qui y sont jointes contiennent des 
renseignements confidentiels destines uniquement a la personne ou a l' 
organisme nomme ci-dessus.  Toute diffusion, distribution, reproduction ou 
utilisation comme reference du contenu du message par une autre personne que le 
destinataire est formellement interdite.  Si vous avez recu ce courriel par 
erreur, veuillez le detruire immediatement et en informer l' expediteur a l' 
adresse ci-dessus.
------------------------------ IMPORTANT NOTICE - AVIS IMPORTANT 
------------------------------


Other related posts: