Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

New Post: STARTTLS IN IMAPX

$
0
0
Hi jabirst,
After the STARTTLS Command, you have to switch to an SslStream. I post the snipped here, that may help you.
IList<string> data=new List<string>();
if (SendAndReceive(ImapCommands.StartTLS, ref data))
{
    _ioStream = new SslStream(_client.GetStream(), false, CertificateValidationCallback, null);
    (_ioStream as SslStream).AuthenticateAsClient(_host, null, SslProtocols.Tls, false);
    _streamReader = new StreamReader(_ioStream);
    // update capabilities
    Capability();
}
I hope, this helps. Let me know, if you have further questions.

Best regards,
Michael

Viewing all articles
Browse latest Browse all 1952

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>