K
Kevin Kutzera
I've searched the Outlook object model for at least a day. I am trying to
write code that will test the size of a file attachment BEFORE the user saves
to the Exchange DB. I've found the BeforeAttachmentSave event, and the
Attachment property of the MailItem. There's also the Size property of the
Mailitem. Unfortunately the attachment must be saved before the Size
property reflects the total size of the Item (message & attachment.). I've
tried to use the FileSystem but the Attachment PathName property doesn't
contain the path to the file (documented and tested).
GOAL: The goal of this small program is to alert and stop a user in the
attempt to attach a large file (> 100 mb for example) before they save or
send. I don't have the overhead in the Exchange DB to allow users to try. I
have the usual policies set for Send and Receive, unfortunately this doesn't
stop the users from trying, which overloads the DB capacity.
Any ideas on another approach would be appreciated.
Kevin
write code that will test the size of a file attachment BEFORE the user saves
to the Exchange DB. I've found the BeforeAttachmentSave event, and the
Attachment property of the MailItem. There's also the Size property of the
Mailitem. Unfortunately the attachment must be saved before the Size
property reflects the total size of the Item (message & attachment.). I've
tried to use the FileSystem but the Attachment PathName property doesn't
contain the path to the file (documented and tested).
GOAL: The goal of this small program is to alert and stop a user in the
attempt to attach a large file (> 100 mb for example) before they save or
send. I don't have the overhead in the Exchange DB to allow users to try. I
have the usual policies set for Send and Receive, unfortunately this doesn't
stop the users from trying, which overloads the DB capacity.
Any ideas on another approach would be appreciated.
Kevin