Hi,
I'm working with Spire.Email.Pop3 to receive emails with C#.
The pop host is microsoft office365 as the following
pop.Host = "outlook.office365.com";
most of time i get the following error in pop.Connect(); as the following :
System.IO.IOException: Authentication failed because the remote party has closed the transport stream.
at spr?.?(Object A_0)
at spr?.?()
at spr?.Read(Byte[] buffer, Int32 offset, Int32 count)
at spr?.Read(Byte[] buffer, Int32 offset, Int32 count)
at spr?.?(spr? A_0, Boolean A_1, String A_2)
at spr?.?(spr? A_0)
at spr?.?(String A_0, Int32 A_1, Boolean A_2)
at spr?.?(String A_0, Int32 A_1, Boolean A_2)
at spr?.?(Boolean A_0)
at Spire.Email.Pop3.Pop3Client.Connect()
All the blogs are recommending to enable more security protocol.
I added the following line before pop.Connect(); but the issue not solved
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;