This project is read-only.
2
Vote

Email attachments are not disposed

description

In our SSIS package we have to delete file after send as attachement.

you have to dispose your email attachement after the send in SendHTMLMailTask.cs :
smtpClient.Send(mailMessage);
mailMessage.Attachments.Dispose(); 

Regards

comments