0 votes

I need to read aruba emails from my asp.net project I have also another email provider and this code it works perfectly, but, when I change client, port and credentials I have this error:

Exception 1/3
Limilabs.Client.ServerException: 'Tried to read a line. Only '' received. Please make sure that antivirus and firewall software are disabled or configured correctly.'

Exception 2/3
IOException: Impossibile leggere dati dalla connessione del trasporto: Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato.
In English: Unable to read data from transport connection: Unable to establish connection. Incorrect response from the connected party after the time interval or no response from the connected host

Exception 3/3
SocketException: Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato
In English: Unable to establish connection. Incorrect response from the connected party after the time interval or no response from the connected host
The Imap object is of type Limilabs.Client.IMAP;

the code is:

using (Imap imap = new Imap())
{
    //at this line I got the error:
    imap.Login("xxx", "xxx");
    imap.Connect("pop3s.aruba.it", 995);
}
by (210 points)

1 Answer

+1 vote

Does using ConnectSSL instead of Connect help?

using (Pop3 pop = new Pop3())
{
     pop.ConnectSSL("pop3s.aruba.it");
     pop.UseBestLogin("xxx", "xxx");

     ...
 }
by (301k points)
edited by
using ConnectSSL I get this error
Limilabs.Client.IMAP.ImapResponseException: 'Dovecot ready.'
You are connecting to POP3 server - use POP3 class instead of Imap class
With Pop3 class it works! I have another little question... Is there any way to select only unread emails? in the guide I can't find it...
POP3 protocol doesn't have such feature.

Please note this is not a Mail.dll limitation but of the POP3 protocol itself.

You need to use IMAP protocol (Imap class) to get read/unread email status.
...