2

I'm using openpop to connect to gmail pop server.

This is the code (very simple)

using (var client = new Pop3Client())
{
    var username = mailProperties.UserId;
    client.Connect(mailProperties.Server, mailProperties.Port, mailProperties.UseSsl);
    client.Authenticate(username, mailProperties.Password);
}

Most of the time it works. But if the password contains "./", the authentication fails and I have an Invalid login exception. Do I have to encode the password or something? I tried Uri.EscapeDataString but the result is the same.

I verified the password and it's the good one ;)

Mighty Badaboom
  • 6,067
  • 5
  • 34
  • 51
Daniel
  • 9,312
  • 3
  • 48
  • 48
  • OMG! I'm so sorry! I didn't activate the pop option for this email..... – Daniel Jun 17 '14 at 14:38
  • Can anyone post the answer to close the topic? thanks – Daniel Jun 17 '14 at 14:41
  • You can post an answer to your own question. You can't accept it for another 48 hours though. [Can I answer my own question?](http://stackoverflow.com/help/self-answer) – Sean Airey Jun 17 '14 at 14:52

1 Answers1

0

I forgot to activate the pop access in my gmail option for this account.

The problem is now solved.

Daniel
  • 9,312
  • 3
  • 48
  • 48