PropertyId

Overview

PropertyId is an IntEnum that mirrors CommonMessagePropertyId in its integer values but extends each member with a property_type attribute holding the corresponding PropertyTypeCode. This allows MapiMessage.set_property() to infer the correct MAPI type automatically, so callers do not need to supply an explicit type code alongside the property ID. Integer values are identical to those in CommonMessagePropertyId.

from aspose.email_foss import msg

message = msg.MapiMessage.create("Hello", "Body")
message.set_property(msg.PropertyId.SENDER_NAME, "Build Agent")
message.set_property(msg.PropertyId.SENDER_EMAIL_ADDRESS, "agent@example.com")
message.save("output.msg")

Values

ValueDescription
MESSAGE_CLASSMAPI message class string (e.g., IPM.Note).
TRANSPORT_MESSAGE_HEADERSInternet transport headers.
SUBJECTMessage subject line.
DISPLAY_TOFormatted To recipients string.
DISPLAY_CCFormatted CC recipients string.
DISPLAY_BCCFormatted BCC recipients string.
INTERNET_MESSAGE_IDRFC 2822 Message-ID header.
MESSAGE_FLAGSMAPI message flags bitmask.
INTERNET_CODEPAGEInternet codepage for the message body.
SENDER_NAMESender display name.
SENDER_ADDRESS_TYPESender address type (e.g., SMTP).
SENDER_EMAIL_ADDRESSSender email address.
MESSAGE_DELIVERY_TIMEMessage delivery timestamp.
STORE_SUPPORT_MASKMessage store support flags.
BODYPlain-text body.
BODY_HTMLHTML body.
DISPLAY_NAMEDisplay name of an object.
ATTACH_METHODAttachment method (by value, by reference, etc.).
ATTACH_DATA_BINARYAttachment binary data.
ATTACH_FILENAMEShort attachment filename.
ATTACH_LONG_FILENAMELong attachment filename.
ATTACH_MIME_TAGAttachment MIME type.
ATTACH_CONTENT_IDAttachment Content-ID for inline references.
SCHEDULE_INFO_DELEGATE_NAMESScheduling delegate names.
SCHEDULE_INFO_MONTHS_BUSYScheduling busy months.
EXAMPLE_TAG_100AExample custom property tag.
EXAMPLE_TAG_101DExample custom property tag (multi-value).

See Also