Пример #1
0
 public static void ShowPop3Subjects()
 {
     using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort))
     {
         ep.OpenPop3();
         ep.DisplayPop3Subjects();
         ep.ClosePop3();
     }
 }
Пример #2
0
 public static void OpenCloseImap()
 {
     try
     {
         using (EmailParser ep = new EmailParser(cImapUserName, cImapPwd, cImapMailServer, cImapPort))
         {
             ep.OpenImap();
             ep.CloseImap();
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
Пример #3
0
        public static void DisplayHeaderInfo()
        {
            try
            {
                using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort))
                {
                    ep.OpenPop3();

                    ep.DisplayPop3HeaderInfo();

                    ep.ClosePop3();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Пример #4
0
        public static void SaveImapBodyandAttachments(string path)
        {
            try
            {
                using (EmailParser ep = new EmailParser(cImapUserName, cImapPwd, cImapMailServer, cImapPort))
                {
                    ep.OpenImap();

                    ep.SaveImapBodyAndAttachments(path);

                    ep.CloseImap();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Пример #5
0
        public static void AutomatedSmtpResponsesImap()
        {
            try
            {
                using (EmailParser ep = new EmailParser(cImapUserName, cImapPwd, cImapMailServer, cImapPort))
                {
                    ep.OpenImap();

                    ep.AutomatedSmtpResponsesImap(cSmtpMailServer, cSmtpUserName, cSmtpPwd, cSmptPort, "*****@*****.**", "Your customer");

                    ep.CloseImap();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }