protected virtual void CopyMessage(ISmtpMessage message, string folderPath) { try { string uniqueFileName = Extensions.CreateUniqueFileName(); message.SaveToFile(Path.Combine(folderPath, uniqueFileName)); } catch (Exception ex) { Logger.Error("While copying message {0}", ex.ToString()); Logger.Debug(ex); } }
bool CopyToFolder(ISmtpMessage message, string folderPath) { try { string uniqueFileName = Extensions.CreateUniqueFileName(); message.SaveToFile(Path.Combine(folderPath, uniqueFileName)); return(true); } catch { } return(false); }
bool CopyToFolder(ISmtpMessage message, string folderPath) { try { string uniqueFileName = Extensions.CreateUniqueFileName(); message.SaveToFile(Path.Combine(folderPath, uniqueFileName)); return true; } catch { } return false; }