AttachmentCreateAttachmentFromString Method (String, String)

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,
	string name
)

Parameters

content
Type: SystemString
A string that represents the content of attachment.
name
Type: SystemString
The attachment name.

Return Value

Type: Attachment
Returns created attachment
See Also