开发者

sending email with smtp client with attachment giving error

开发者 https://www.devze.com 2023-01-13 09:52 出处:网络
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 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?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号