View Single Post
  #2  
Old March 3rd 06, 09:42 PM posted to microsoft.public.outlook.program_vba
Eric Legault [MVP - Outlook]
external usenet poster
 
Posts: 830
Default Setup outlook swear filter

The best approach to handle this would be macros or a COM Add-In that would
trap the "window" of all new e-mail messages, use the InStr function on the
MailItem.Body property, and cancel MailItem_Send if any objectionable words
are found.

See my article here on how to wire up your code into new e-mails:

Getting a Handle on Your E-mails with VBA:
http://blogs.officezealot.com/legaul...cles/2224.aspx

--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard for Outlook:
http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault/


"James" wrote:

Hi,

I work for a 20 user co with SBS2003 and exchange and im trying to set up a
rule that checks the users outgoing email for swear words, eg sh*t etc etc
and if it contains them replies with a message like please do not use company
email to swear. but i have tried to setup a sever rule and i doesnt work? i
know of something regarding it only replying once, but as you can tell this
would need to happen evey time someone swears

thanks

Ads