Ejemplo n.º 1
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());
     }
 }
Ejemplo n.º 2
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());
            }
        }
Ejemplo n.º 3
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());
            }
        }