Mail attachment maintains lock on file after sending

  • Thread starter Thread starter Smokey Grindle
  • Start date Start date
S

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?
 
Back
Top