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