Пример #1
0
 public void TestSendMail()
 {
     IMail mail = new Mail1C();
     mail.ConnectSmtp("smtp.ukr.net", "*****@*****.**", "jgnbvf", 465);
     for (int i = 0; i < 1; i++ )
         mail.SendMessage("*****@*****.**", null, "d:\\D\\Projects\\Current\\fb\\Mail\\Examples\\VS2012\\SmtpSend\\Program.cs", "Привет", "test");
 }
Пример #2
0
 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();
 }
Пример #3
0
 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();
 }