dummy = Encoding.ASCII.GetBytes("$ XLIST \"\" \"*\" \r\n"); byte[] dummy ; System.Net.Sockets.TcpClient tcpc = new System.Net.Sockets.TcpClient("imap.gmail.com", 993); System.Net.Security.SslStream ssl = new System.Net.Security.SslStream(tcpc.GetStream()); ssl.Write(dummy, 0, dummy.Length); buffer = new byte[2048]; bytes = ssl.Read(buffer, 0, 2048); ssl.Flush(); dummy = Encoding.ASCII.GetBytes("$ LOGOUT \r\n"); ssl.Write(dummy, 0, dummy.Length);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)