+1 vote

Hi,

i am using the Limilabs.Client.Pop3 class to connect to a POP3 server (3rd party) to get mails for 1-n users.

All works fine except when the given password of a user contains a german umlaut (ä, ö, ü), then i get an exception ("Authentication failed."). I think it's an encoding problem during the login process.

Is it possible to alter the encoding used by Pop3 class during login-process or is there another way to fix this problem?

by
Could you please contact us directly (you can find the support email in the page's footer), we'd like to reproduce this issue. Is it possible to create a test account for us?

1 Answer

0 votes

Latest version introduces Pop3Configuration.AuthenticationEncoding, ImapConfiguration.AuthenticationEncoding and SmtpConfiguration.AuthenticationEncoding properties.

They can be used to change the encoding used for authentication process (unless login method explicitly requires UTF-8):

using (Pop3 client = new Pop3())
{
    client.Configuration.AuthenticationEncoding 
        = System.Text.Encoding.UTF8;

    client.ConnectSSL("pop3.example.com");

    client.UseBestLogin("user","pass");

    client.Close();
}
by (297k points)
...