Difference between revisions of "POP3Socket.CheckServerConnection"

From Xojo Documentation

m
 
Line 12: Line 12:
  
 
This is simply a command that asks the server to reply. This can be useful to check that the mail server is still responding and also tells the mail server that you are still connected if there has been no activity for a long period of time.
 
This is simply a command that asks the server to reply. This can be useful to check that the mail server is still responding and also tells the mail server that you are still connected if there has been no activity for a long period of time.
 +
 +
If successful, the ServerAvailable event handler is called.
  
  

Latest revision as of 19:36, 9 March 2017

Method

POP3Socket.CheckServerConnection()

Supported for all project types and targets.

Sends a "NOOP" command to the mail server.

Notes

This is simply a command that asks the server to reply. This can be useful to check that the mail server is still responding and also tells the mail server that you are still connected if there has been no activity for a long period of time.

If successful, the ServerAvailable event handler is called.


Example

In this example, a POP3Socket has been added to the window and named socket1.

socket1.CheckServerConnection