+1 vote

I know via this “imap.Connected” I can check if the Imap session is live or not, but I can´t find where to specify the host so that I can check if there is an alive connection before connect. Can you help me to know how or write me an example, please?

Thanks in advance!

by

1 Answer

0 votes
 
Best answer

There is no such feature.

Imap.Connected property works when you are already connected.

You can use it to check if connection is still active. Generally I would use Noop as it also resets any server enforced inactivity timeouts.

In most cases there is no need to use Connected or Noop at all.

by (297k points)
...