|
-
April 23rd, 2010, 10:49 AM
#3
Re: Attach Files to an E-Mail and Delete them
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|