retrieve Method
Retrieves a message specified by MessageNumber from the server.
Syntax
def retrieve() -> None: ...
Remarks
This method is used to retrieve a message specified by message_number from the server. It asks the mail_server to retrieve the message specified by message_number. The message headers will arrive in the on_header event, and the message text will arrive in the on_transfer event.
The max_lines property defines the number of lines retrieved.
Example (Connect and Retrieve Message)
POPControl.MailServer = "MyPOPServer" POPControl.User = "username" POPControl.Password = "password" POPControl.Connect() POPControl.MessageNumber = 1 POPControl.Retrieve()