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

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