c# - Unable to read data from the transport connection IMAP -


i use imap read mails gmail in c#. have created multiple (five)tcp connections on same mailbox faster data reading. google allows 15 simultaneous mailbox

https://support.google.com/mail/answer/97150?hl=en

but getting error while reading data

sslstream.read(byte[] buffer, int offset, int count);

saying "unable read data transport connection: existing connection forcibly closed remote host.".

i use following settings reference

imap.gmail.com port:993

complete stack trace follows

: unable write data transport connection: existing connection forcibly closed remote host.

error2015-07-10

05:46:43 – stack strace :: @ system.net.sockets.networkstream.write(byte[] buffer, int32 offset, int32 size)
@ system.net.security._sslstream.startwriting(byte[] buffer, int32 offset, int32 count, asyncprotocolrequest asyncrequest) @ system.net.security._sslstream.processwrite(byte[] buffer, int32 offset, int32 count, asyncprotocolrequest asyncrequest) @ system.net.security.sslstream.write(byte[] buffer, int32 offset, int32 count) @ cdt.webmailreader.cloudmailreader.receiveresponse(receiveresponseparams responseparams)

i have check solution on many forums didn't solution.can 1 please suggest solution it.

thanks in advance

mayuresh

try use 143 port connect. if problem persists, check network environment


Comments