0 votes

Hi,

I'm able to login using the following code but when I call GetAll no messages return. If I use Outlook (with the settings below) to connect I'm able to see messages. I'm trying to match up MDN messages.

My Code:

pop3.ConnectSSL(_server);
pop3.UseBestLogin(_user, _password); 

List<string> uidList = pop3.GetAll(); // Returns 0 messages.

Outlook Settings:

Incoming Server POP3: 995
Checked: This server requires an ecrypted connection (SSL)

Outgoing server (SMTP): 587
TLS: Use the floowing type of encryption connection
Delivery:
Unchecked: Leave a copy of messages on the server

thank you,
bill

by (200 points)

1 Answer

0 votes

1.
Are you using Gmail? If so you need to be avare how Gmail's POP3 works. There is a good article here:
https://www.limilabs.com/blog/gmail-pop3-behavior

2.
Consider using IMAP. Generally IMAP is more reliable and has more features:
https://www.limilabs.com/blog/pop3-vs-imap

3.
Please turn on logging:
https://www.limilabs.com/blog/logging-in-mail-dll

We'll be sure that it is the server that is not returning the messages, and it is not a problem with Mail.dll (I'm sure of that, however it's good to check)

by (301k points)
...