public void TestRecive() { IMail mail = new Mail1C(); //mail.ConnectIMAP("imap.ukr.net", 993, "*****@*****.**", "Drag0n"); mail.ConnectIMAP("imap.ukr.net", 993, "*****@*****.**", "jgnbvf"); var msg = mail.GetMessagesToStringJson("", "", "", 100); mail.CloseConnection(); //IMail mail = new Mail1C(); //mail.ConnectPop3("imap.ukr.net", 993, "*****@*****.**", "jgnbvf"); //mail.GetMessages2("","","",100); //mail.ClosePop3(); }
public void TestRecive7() { IMail mail = new Mail1C(); //mail.ConnectIMAP("imap.ukr.net", 993, "*****@*****.**", "Drag0n"); mail.ConnectIMAP("imap.ukr.net", 993, "*****@*****.**", "jgnbvf"); // var msg = mail.GetMessagesToStringJson("", "", "", 100); string s = mail.GetMessagesCount("", "", "", 100); int sepIndex = s.IndexOf("#"); string merssageId = s.Substring(0, sepIndex); int msCount=Int32.Parse(s.Replace(merssageId + "#", "")); for (int i = 0; i < msCount; i++) { string val = mail.GetMessageField(merssageId, i, "AttachmentExist"); } mail.RemoveMessages(merssageId); mail.CloseConnection(); //IMail mail = new Mail1C(); //mail.ConnectPop3("imap.ukr.net", 993, "*****@*****.**", "jgnbvf"); //mail.GetMessages2("","","",100); //mail.ClosePop3(); }