0 votes

When I try to connect to my email Im getting:

-ERR Unable to log on

Im using:

Limilabs.Mail.Log.Enabled = true;
pop3.ServerCertificateValidate += new ServerCertificateValidateEventHandler(Validate);
pop3.ConnectSSL("xxxx.com"); 
pop3.Login("fs@xxxx.com", "fdsafadsda(");

At this moment I get a exception:
-ERR Unable to log on

Mail.dll Information: 0 : 9 12:34:29 3.0.22105.1207
Mail.dll Information: 0 : 9 12:34:29 .NETFramework,Version=v4.5;NETFRAMEWORK;NET45;
Mail.dll Information: 0 : 9 12:34:29 Connecting to 'xxxx.com:995', SSL/TLS: True.
Mail.dll Information: 0 : 9 12:34:55 S: +OK Welcome to MailEnable POP3 Server
Mail.dll Information: 0 : 9 12:34:55 C: CAPA
Mail.dll Information: 0 : 9 12:34:55 S: +OK Capability list follows
Mail.dll Information: 0 : 9 12:34:55 S: TOP
Mail.dll Information: 0 : 9 12:34:55 S: USER
Mail.dll Information: 0 : 9 12:34:55 S: UIDL
Mail.dll Information: 0 : 9 12:34:55 S: .
Mail.dll Information: 0 : 9 12:35:01 C: USER fs@xxxx.com
Mail.dll Information: 0 : 9 12:35:01 S: +OK
Mail.dll Information: 0 : 9 12:35:01 C: PASS asdaad(
Mail.dll Information: 0 : 9 12:35:02 S: -ERR Unable to log on
A first chance exception of type 'Limilabs.Client.POP3.Pop3ResponseException' occurred in Mail.dll

by
retagged by

1 Answer

0 votes

Your code looks correct.

You are getting an error returned by your server - server refuses to authenticate you.

There might be several causes of this, most common are:

  • Invalid or mistyped password
  • invalid or mistyped username (MailEnable says it should in the format of MAILBOX@POSTOFFICE)
  • POP3/IMAP protocols are not enabled for this mailbox (Using the MailEnable Administration Program, open the Properties of the POP Service and select the POP tab. Select the Access Control Button and
    ensure that the option to Grant Access is selected.)
  • server requires OAuth or app passwords.

You can find more details here:
http://www.mailenable.com/kb/content/article.asp?ID=ME020335

by (301k points)
...