In my company we have "regulatory walls" between different work groups to prevent priveliged information from being shared across different organizations. A simple example is that we have Work Groups: A, B, and C. Employess from Work Group A can freely communicate electronically with Employees from Work Group B or Work Group C. Work Group B and Work Group C employees can not freely communicate with each other electronically.
I created a Rule in Outlook that checks the text body of incoming E-Mail messages against a list of test individuals such that when it finds one of the names in the list it changes the color of the E-Mail flag to "blue".
What I'm wondering is if it's possible, in Outlook VBA, to duplicate or use the existing rule to work so that it would run this rule before sending any out-going E-Mail messages. The code, before turning the E-Mail flag to blue or instead of turning the E-Mail flag to blue, would present the user with a warning message indicating that the text body of the out-going E-Mail message contains one or more names from the restricted employee list. The warning message dialog box would also have "Yes" and "No" buttons the employee would have to select in order to proceed, indicating whether or not they want to proceed with sending the E-Mail message. The code would also capture the employee_name, employee_selection, employee_id, and organization information to serve as an audit trail to identify when employees select the "Yes" button and choose to send the message without revisions. Any help you can provide would be greatly appreciated. Thank you in advance for your help.