You can handle the item.Send() event and check the attachments there.
However to check each attachment you need to save it to the file system and
load it with the program that handles that type of file. You can then scan
the file using methods from that program (assuming it can be automated).
For information and samples for COM addins for Outlook look at
www.outlookcode.com
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"mps161" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> I am trying to prevent emails with attachments from being sent to the
> wrong person accidently. I need a way to have outlook scan the
> attachment for the email address of the recipient. The attachment
> would be a word document, text file, or excel file with the first page
> or row having the client's name and address. Is there a way to do this
> in outlook before it would allow the document to be sent? I would like
> to have it where when clicking the send button that a box would come up
> if the recipients' email address was not in the attachment. I am a
> basic user of outlook so I do not know much about COMs.
>
>
>
>
> --
> mps161