content_type Property
The content type of the outgoing message.
Syntax
def get_content_type() -> str: ... def set_content_type(value: str) -> None: ...
content_type = property(get_content_type, set_content_type)
Default Value
"text/plain"
Remarks
This property is used to specify the content type (MIME type) for outgoing messages sent using send_message. The default value is text/plain, which should be sufficient is most cases.
Note that this property is ignored for messages sent using send_data, as such messages do not have a content-type header added to them. The absence of a content-type header indicates to the server that the data should be treated as a binary blob.