subject Property
The subject of the mail message (optional).
Syntax
def get_subject() -> str: ... def set_subject(value: str) -> None: ...
subject = property(get_subject, set_subject)
Default Value
""
Remarks
The string in this property is sent with a Subject SMTP header to the mail recipient.
If the resulting header is longer than MaxHeaderLength, then it is folded according to RFC 822 specifications.