04-22-2020, 09:04 AM
Hi Marco,
Hmm, I wonder are you attaching a file or something else? I've just tried on my side with an SMTP account and it didn't lock it, even after a second run.
Below is how I handle the file lock by the way:
emailClient.Send(message);
foreach (Attachment attachment in message.Attachments)
{
attachment.Dispose();
}
Hmm, I wonder are you attaching a file or something else? I've just tried on my side with an SMTP account and it didn't lock it, even after a second run.
Below is how I handle the file lock by the way:
emailClient.Send(message);
foreach (Attachment attachment in message.Attachments)
{
attachment.Dispose();
}