method Inbox.Execute ([Host as Variant], [User as Variant], [Pass as Variant], [Command as Variant])
Executes a command on the server.

TypeDescription
Host as Variant A string expression that indicates the incoming mail server address. A POP3 server. You can use IP address or domain names as well: Samples: 193.226.40.161, mail.microsoft.com
User as Variant Specifies the user account. Some servers require the full email address as account, some not. Ask your ISP provider about your account name. Samples: dean, dean@exontrol.net. The User property is used when control sends the USER command, a POP3 command.
Pass as Variant A string expression that indicates the account's password.
Command as Variant A string expression that indicates  the POP3 command. See the RFC 1939 for the list of supported commands.

Use the Execute method to execute a command on the server. Use the Execute event to get the answer of the server after it executed the command.

For instance, you can use the Execute command to delete a message from the server. Use the Index property to get the index of message on the server. Attention! That index is not the same with the index of the message in the messages collection. ibx.Execute "193.226.40.161", "james", "cucubau", "DELE 1" delete the first message on the server