AttachmentCreateAttachmentFromString Method (String, ContentType)

Creates the attachment from string.

Namespace:  Aspose.Email
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.3
Syntax
public static Attachment CreateAttachmentFromString(
	string content,
	ContentType contentType
)

Parameters

content
Type: SystemString
A string that represents the content of attachment.
contentType
Type: Aspose.Email.MimeContentType
The ContentType.

Return Value

Type: Attachment
Returns created attachment
See Also