protected string SaveAttachement(MimeEntity ent) { var attachmentFileName = GetShortFileNameFromAttachement(ent); CurrFileName = DownHandlerPath + attachmentFileName; using (var fs = new FileStream(CurrFileName, FileMode.Create)) ent.DataToStream(fs); return(attachmentFileName); }