using Lesnikowski.Client.IMAP;
using Lesnikowski.Mail;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
using (Imap imap = new Imap())
{
imap.Connect("imap.gmail.com");
imap.Login("junaid21700@gmail.com","xxx");
imap.SelectInbox();
//....
imap.Close(true);
}
Console.ReadLine();
}
}