Mail attachment maintains lock on file after sending

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?
 

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