retrieve_headers Method
Retrieves headers for a message specified by MessageNumber .
Syntax
def retrieve_headers() -> None: ...
Remarks
Calling this method will retrieve the headers for the message specified by the message_number property. The message headers will be provided by the on_header event and also stored in the message_headers property.
Example (Connect and Retrieve Message Headers)
POPControl.MailServer = "MyPOPServer" POPControl.User = "username" POPControl.Password = "password" POPControl.Connect() POPControl.MessageNumber = 1 POPControl.RetrieveHeaders()