We are using mail client successfully in our production environment, but when trying to test in dev we get authentication errors. I have confirmed the user and password are valid (connecting directly to gmail). Could this be a license issue? I'm trying to add another email listener and unable to test it properly.
imap.SSLConfiguration.EnabledSslProtocols =
System.Security.Authentication.SslProtocols.Tls12;
imap.ConnectSSL(Gmail);
imap.Login(User, Password);
imap.SelectInbox();
var uids = imap.Search(Flag.Unseen);
Limilabs.Client.IMAP.ImapResponseException: '[AUTHENTICATIONFAILED] Invalid credentials (Failure)'