boudino,

Thanks for your reply.

This is where I am calling the class.

SendEmail.SendMessage(sendTo, " ", emsubject,files);

files is the array of files.

And this is where I am adding the files to the attachments.

foreach (string file in filesToattach)
{
message.Attachments.Add(new Attachment(file));

}

Where and how should I use the Dispose()?

Thanks.