I am trying to do something that will read email, but I cannot make anything work. This code:
TcpClient c = new TcpClient(); c.Connect("imap.gmail.com", 993); NetworkStream stream = c.GetStream(); stream.ReadTimeout = 1000; stream.ReadByte();
The seams should be where any code I load. The last line throws an IOException message with the message: "Unable to read data from the transport connection: the connection attempt failed because the connected party did not respond properly after some time or the connection was not established because the connected host could not respond."
I would agree to a third-party program that automatically downloads email in a format that I can read. I got Thunderbird to connect to gmail, so the problem at my end is for sure.
source share