Open krissaspdev opened 11 years ago
You may have to dispose the mail message object and then delete it.
Sent from my iPhone Sohan SM
On 2013-03-29, at 5:21 AM, krissaspdev notifications@github.com wrote:
I'm trying to delete a file automatically after it's being send. Error: "The process cannot access the file. (~\"Path") because it is being used by another process". The same problem using SendAsync method (using SendCompleted callback). What is the best way to delete attachment files at the end o the process ?
— Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/92 .
Sent from my iPhone Sohan SM
On 2013-03-29, at 5:21 AM, krissaspdev notifications@github.com wrote:
I'm trying to delete a file automatically after it's being send. Error: "The process cannot access the file. (~\"Path") because it is being used by another process". The same problem using SendAsync method (using SendCompleted callback). What is the best way to delete attachment files at the end o the process ?
— Reply to this email directly or view it on GitHubhttps://github.com/smsohan/MvcMailer/issues/92 .
I'm trying to delete a file automatically after it's being send. Error: "The process cannot access the file. (~\"Path") because it is being used by another process". The same problem using SendAsync method (using SendCompleted callback). What is the best way to delete attachment files at the end o the process ?