Following is the code snippet:
using (Pop3 pop3 = new Pop3())
pop3.ReceiveTimeout = new TimeSpan(0, 0, 0, 0, 30000);
// further read logic
SMTPHost, ServerPort, Username and Password :- all are variables and appropriate values are assigned to those.
I am using synchronous connect.
Connect method is first method in the using block.
I am using .NET 4.7.2
Mail.dll version used: 3.0.14185.1633
Error coming at first statement ie using block statement.
Limilabs.Client.ServerException: Please connect first
Let me know if any more information is needed.