Hi All,
I need to add some files to the folder and zip that folder and attach the same to the mail. For this I am using following code but could able to zip the required folder.
ZipFile zip = new ZipFile();
for(int i=0;i<attachments.Length-1 ; i++)
{
System.IO.FileInfo f = new System.IO.FileInfo(attachments[i]);
zip.AddFile(attachments[i]);
}
zipfile = "myfolderpath is given here";
zip.Save(zipfile);
The result what I am getting is, I am able to add files to the specified path but the folder is not getting zipped.
Regards,
Praveen