Hello!
I'm tried to solve my problem for hours but I'm completly clueless.
If im using the following code, the application runs without any error.
imapAuthenticate.ConnectSSL("imap.gmail.com", _serverPort);
But if im change the "imap.gmail.com" to this:
imapAuthenticate.ConnectSSL(_serverAddress, _serverPort);
_serverAddress is loaded from database, and has the same value.
I get ServerException was unhandled. An unhandled exception of type 'Limilabs.Client.ServerException' occurred in Mail.dll
An exception was intercepted and the call stack unwound the point before the call from user code where the exception occurred. "Unwind the call stack on unhandled exceptions" is selected in the debugger options.
Tried to turn off this in the options, but getting error too.