+2 votes

Hi
I am trying to login with credentials using the Imap. the login works on all credentials except for one specific account. could there be a problem with characters in the password? this is the password we attempted to use: xA\bRP';Xcx{QpHk;57-

note that the logging works when going directly to gmail.com

by

1 Answer

0 votes

I had to create a test account especially for that.

Had no problems using xAbRP';Xcx{QpHk;57- as password (no basckshles \ sign).

When I tried to use xA\bRP';Xcx{QpHk;57- authentication failed. The fix was to use @-string.

Remember that backslash is an escape character in C# it must be escaped or @-string used:

string pass = @"xA\bRP';Xcx{QpHk;57-";
by (301k points)
...