Add-in for verfying recipients email address is in the attachment

M

mps161

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

Ken Slovak - [MVP - Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top