+1 vote

I try to connect imap with:

Dim ImapClient = New Imap()
ImapClient.Connect("imap.pec.it", 993)

but the system return:
tried to read a line. only '' received. Please make sure that you have disabled antivirus and firewall software or that you have configured them correctly.

Can you help me?
Many thanks.

by

1 Answer

0 votes
 
Best answer

993 port is for IMAP over SSL (IMAPS).

You need to use Imap.ConnectSSL method. As this is standard port there is no need to specify it. Simply use this code:

Dim ImapClient= New Imap()
ImapClient.ConnectSSL("imap.pec.it")

https://www.limilabs.com/blog/default-ports-for-email-protocols

https://www.limilabs.com/blog/connection-attempt-failed

by (297k points)
...