Hi all
Iam using multiple file upload control to upload multiple files and sending this through mail ... i got code fro here
http://www.aspsnippets.com/Articles/Upload-and-attach-multiple-files-as-attachments-to-email-in-ASPNet.aspx
sending files through mail using this code
List<HttpPostedFile> files = (List<HttpPostedFile>)Cache[this.Key];
foreach (HttpPostedFile file in files)
{
mail.Attachments.Add(new Attachment(file.InputStream, Path.GetFileName(file.FileName), file.ContentType));
}
its working well .
.i want to save all attachments to my project folder
List<HttpPostedFile> files = (List<HttpPostedFile>)Cache[this.Key]; string lscoll = "";
foreach (HttpPostedFile file in files)
{
fuattachfile.PostedFile.SaveAs(SerPth + Path.GetFileName(file.FileName));
}
im getting files without content in the project folder ...but its going well with images .. how to resolve this??