示例#1
0
 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);
     }
 }
示例#2
0
        bool CopyToFolder(ISmtpMessage message, string folderPath)
        {
            try
            {
                string uniqueFileName = Extensions.CreateUniqueFileName();
                message.SaveToFile(Path.Combine(folderPath, uniqueFileName));
                return(true);
            }
            catch
            {
            }

            return(false);
        }
示例#3
0
 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);
     }
 }
示例#4
0
 bool CopyToFolder(ISmtpMessage message, string folderPath)
 {
     try
     {
         string uniqueFileName = Extensions.CreateUniqueFileName();
         message.SaveToFile(Path.Combine(folderPath, uniqueFileName));
         return true;
     }
     catch
     {
     }
     
     return false;
 }