message_text Property

The full text of the message as retrieved from the server.

Syntax

def get_message_text() -> str: ...

message_text = property(get_message_text, None)

Default Value

""

Remarks

This property contains the full text of the message as retrieved from the server. If the class is not connected, or message_number does not contain a valid message number, the value of this property is an empty string. Otherwise, it contains the text of the mail message as reported by the server (a maximum of max_lines).

The mail_server is asked about the text of the message only if the message_number property has changed. If message_number has not changed, the class returns a cached value.

Example (Connect and Retrieve Message)


POPControl.MailServer = "MyPOPServer"
POPControl.User = "username"
POPControl.Password = "password"
POPControl.Connect()

POPControl.MessageNumber = 1
MessageText = POPControl.MessageText
MessageHeaders = POPControl.MessageHeaders

This property is read-only.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]