Custom Form / VBScript : Get Attachment Size ?

M

mars2029

Hello,
i'm completely new to vbscript, so please be gentle..:)

i'm working on a custom form (with loads of vbscript in it) we already
use in our company for reading/writing messages.
the initial developer left and now i'm trying to improve it here and
there to better suit our needs.

right now i'm searching for a way to compute the (total) size of
attachments a user might add when composing a new message.
is there a property or something i could use in the code to get this
information ?

what i would like to do ultimately is check the message for big
attachment(s) when the user clicks on the send-button. if the attached
file(s) are too big he or she would get a message asking to reduce the
filesize, then cancel the send-process.

i've experimented with the item.size property but of course that only
returns a value for items that are already saved and stored (i.e
received messages).

Is there something to get attachment size for new messages?

Thanks in advance
Michael
 

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