- Регистрация
- 27.12.2013
- Сообщения
- 879
- Благодарностей
- 189
- Баллы
- 43
Код:
// download all messages from yandex via POP3 and add results to the table
Tuple<string, string, string, string>[] allMails;
allMails = ZennoPoster.BulkMailDownload(project.Variables["sys_redirect_login"].Value,
project.Variables["sys_redirect_pass"].Value, project.Variables["pop"].Value, 995, true,
ZennoLab.InterfacesLibrary.Enums.Email.EmailProtocol.POP3,
24*2, 2500, false);
// loop fo all messages
foreach(Tuple<string, string, string, string> tuple in allMails)
{
// adding messages to the table called Tabl1
// tuple.Item1 - sibject, tuple.Item2 - from, tuple.Item3 - html message, tuple.Item4 - text message
List<string> tmp = new List<string>();
tmp.Add(tuple.Item1);
tmp.Add(tuple.Item2);
tmp.Add(tuple.Item3);
tmp.Add(tuple.Item4);
project.Tables["Tabl1"].AddRow(tmp);
}
спс!