I am attempting to use the openpop.dll to pull email from gmail account. but I get the following error
Problem logging in using method Auto. Server response was:
-ERR [AUTH] Username and password not accepted
. Exception thrown: 'OpenPop.Pop3.Exceptions.InvalidLoginException
' inOpenPop.dll
I rechecked my User and Password are correct (i can login from the gmail web interface).
In the app.config
:
<add key="SmtpHost" value="pop.gmail.com"/>
<add key="SmtpPort" value="995"/>
My code:
client.Connect(Host, Port, true); //UseSSL true or false
LoggerService.Info("Service authentication starts.");
client.Authenticate(Email, Password);
Anyone have a suggestion?