public static void ShowPop3Subjects() { using (EmailParser ep = new EmailParser(cPopUserName, cPopPwd, cPopMailServer, cPopPort)) { ep.OpenPop3(); ep.DisplayPop3Subjects(); ep.ClosePop3(); } }
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()); } }
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()); } }
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()); } }