Ejemplo n.º 1
0
 public static void ShowPop3Subjects()
 {
     using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort))
     {
         ep.OpenPop3();
         ep.DisplayPop3Subjects();
         ep.ClosePop3();
     }
 }
Ejemplo n.º 2
0
 public static void OpenClosePop3()
 {
     try
     {
         using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort))
         {
             ep.OpenPop3();
             ep.ClosePop3();
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }
Ejemplo n.º 3
0
        public static void SavePop3BodyAndAttachments(string path)
        {
            try
            {
                using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort))
                {
                    ep.OpenPop3();

                    ep.SavePop3BodyAndAttachments(path);

                    ep.ClosePop3();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
        }
Ejemplo n.º 4
0
        public static void AutomatedSmtpResponses()
        {
            try
            {
                using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort))
                {
                    ep.OpenPop3();

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

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