mapi_attachment

mapi_attachment

Overview

mapi_attachment is a class in Aspose.Email for CPP. Inherits from: mapi_attachment.

Properties

NameTypeAccessDescription
filenamestd::stringRead/WriteStores the attachment’s file name
datastd::vector<std::uint8_t>Read/WriteHolds the raw byte content of the attachment
mime_typestd::stringRead/Write
content_idstd::stringRead/WriteContains the attachment’s content identifier
embedded_messagestd::shared_ptr<mapi_message>Read/WriteProvides access to the embedded mapi_message, if any
propertiesmapi_property_collectionRead/Write

Methods

SignatureDescription
from_bytes(filename: std::string, data: std::vector<std::uint8_t>, mime_type: std::string, content_id: std::string)mapi_attachment
from_stream(filename: std::string, stream: std::istream, mime_type: std::string, content_id: std::string)mapi_attachment
load_data(stream: std::istream)Reads attachment data from the given input stream into the object
is_embedded_message()bool