AddAttachmentToMessage

AddAttachmentToMessage (1 of 4)

Adds an attachment to the specified message using the file located at the provided path.

Returns: void Aspose::Email::Storage::Pst::

AddAttachmentToMessage(System::SharedPtr < MessageInfo > messageInfo, System::String filePath)
ParameterDescription
messageInfoThe MessageInfo object representing the target message.
filePathThe full path to the file to be added as an attachment.

AddAttachmentToMessage (2 of 4)

Adds an attachment to the specified message using the provided stream as attachment content.

Returns: void Aspose::Email::Storage::Pst::

AddAttachmentToMessage(System::SharedPtr < MessageInfo > messageInfo, System::String name, System::SharedPtr < System::IO::Stream > stream)
ParameterDescription
messageInfoThe MessageInfo object representing the target message.
nameThe name of the attachment to add.
streamThe stream containing the attachment data.

AddAttachmentToMessage (3 of 4)

Adds an attachment to the message identified by the specified entry ID using the file located at the provided path.

Returns: void Aspose::Email::Storage::Pst::

AddAttachmentToMessage(System::String entryId, System::String filePath)
ParameterDescription
entryIdThe entry ID of the target message.
filePathThe full path to the file to be added as an attachment.

AddAttachmentToMessage (4 of 4)

Adds an attachment to the message identified by the specified entry ID using the provided stream.

Returns: void Aspose::Email::Storage::Pst::

AddAttachmentToMessage(System::String entryId, System::String name, System::SharedPtr < System::IO::Stream > stream)
ParameterDescription
entryIdThe entry ID of the target message.
nameThe name of the attachment to add.
streamThe stream containing the attachment data.