Follow by Email

Wednesday, 11 September 2013

Delete file after use, example in mailing delete file after attachment

mail.Dispose();

            if ((System.IO.File.Exists((Server.MapPath("Sample.ics")))))
            {
                System.IO.File.Delete(Server.MapPath(
"Sample.ics"));
            }

0 comments:

Post a Comment


                                                            

 
Design by Abhinav Ranjan Sinha