Overview
MapiRecipient represents one addressee on a MapiMessage. Instances are returned by MapiMessage.add_recipient(). The recipient type determines whether the address appears in the TO, CC, or BCC fields. Recipient type constants RECIPIENT_TYPE_TO = 1, RECIPIENT_TYPE_CC = 2, and RECIPIENT_TYPE_BCC = 3 are available directly in the aspose.email_foss.msg module. Individual MAPI properties on the recipient can be read or set through the properties collection or via set_property().
Key Fields
| Name | Type | Description |
|---|
display_name | str | None | Human-readable display name. |
email_address | str | None | SMTP email address. |
recipient_type | int | 1 = TO, 2 = CC, 3 = BCC. |
address_type | str | Address type string (e.g. SMTP). |
properties | MapiPropertyCollection | Full MAPI property bag for this recipient. |
Methods
| Signature | Description |
|---|
set_property(property_id, property_type_or_value, value=..., flags=...) -> MapiProperty | Set or replace a MAPI property on this recipient. |
See Also