Home All Groups Group Topic Archive Search About

Mail attachment maintains lock on file after sending

Author
3 May 2007 7:45 PM
Smokey Grindle
I am trying to attach a file, mail it then open it in a stream after to do
something else, but if you put the mail procedure first it locks the file
and the lock isnt released... because the next procedure to open a stream
crashes with an IOException saying its already open or locked... why doesnt
net.mail.mailattachment(filename) then a smtp client send message that its
attached to close the lock on the file after send?

Author
3 May 2007 8:41 PM
John
freaky indeed...I hope someone comes to our rescue...

Show quoteHide quote
"Smokey Grindle" <nospam@dontspamme.com> wrote in message
news:uBuXeubjHHA.4064@TK2MSFTNGP02.phx.gbl...
>I am trying to attach a file, mail it then open it in a stream after to do
>something else, but if you put the mail procedure first it locks the file
>and the lock isnt released... because the next procedure to open a stream
>crashes with an IOException saying its already open or locked... why doesnt
>net.mail.mailattachment(filename) then a smtp client send message that its
>attached to close the lock on the file after send?
>
>
>