CreateAttachmentFromString

CreateAttachmentFromString (1 of 3)

Creates the attachment from string.

Returns: Returns created attachment

CreateAttachmentFromString(System::String content, System::SharedPtr < Aspose::Email::Mime::ContentType > contentType)
ParameterDescription
contentA string that represents the content of attachment.
contentTypeThe ContentType .

CreateAttachmentFromString (2 of 3)

Creates the attachment from string.

Returns: Returns created attachment

CreateAttachmentFromString(System::String content, System::String name)
ParameterDescription
contentA string that represents the content of attachment.
nameThe attachment name.

CreateAttachmentFromString (3 of 3)

Creates the attachment from string.

Returns: Returns created attachment

CreateAttachmentFromString(System::String content, System::String name, System::SharedPtr < System::Text::Encoding > contentEncoding, System::String mediaType)
ParameterDescription
contentA string that represents the content of attachment.
nameThe attachment name.
contentEncodingThe content encoding.
mediaTypeThe media type name