sending email with smtp client with attachment giving error
i am sending an attachement, and the email sends 开发者_C百科successfuly , but when i tries to delete the same file it gives the error as "file is being used by another process" i am deleting by system.io.file.delete()
Did you Dispose
correctly? For both the Stream
and the SmtpClient
after sending the mail?
精彩评论