Outlook Developer Home
Outlook Programmer's Library
Outlook Technologies
Outlook Forms
Other Technologies



To require confirmation when sending file attachments

This Outlook VBA code sample looks for attached files in outgoing messages. For messages with attached files, it prompts the user to confirm that the item should be sent and cancels the sending process if the user answers No. Place this code in the ThisOutlookSession module.

Code Sample


You could enhance this code by checking only for certain types of attachments. See To quarantine application file attachments with Microsoft Outlook 2000 VBA for sample code that works with a list of "bad" file extensions.  

More Information

More samples for the Application.ItemSend event:

Also see:


2002-7 TurtleFlock, LLC
All right reserved.
About OutlookCode.com

Send comments to webmaster@outlookcode.com

Designed and Implemented by TerraLink USA 

FrontPage Integration
by RobsonDesignWorks

get Sue's code | forums | share your own code | registration