AttachmentBaseSetContentFromString Method

Sets the content from string.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
protected void SetContentFromString(
	string contentString,
	Encoding encoding,
	ContentType contentType,
	TransferEncoding te
)

Parameters

contentString
Type: SystemString
The content string.
encoding
Type: System.TextEncoding
The encoding.
contentType
Type: Aspose.Email.MimeContentType
The content type.
te
Type: Aspose.Email.MimeTransferEncoding
The transfer encoding.
See Also