Constructs a new
CopyC#
Attachment
instance.

Namespace: Jscape.Email
Assembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0

Syntax

C#
public Attachment(
	string file,
	string charset
)
Visual Basic
Public Sub New ( _
	file As String, _
	charset As String _
)
Visual C++
public:
Attachment(
	String^ file, 
	String^ charset
)

Parameters

file
Type: System..::..String
The file to be attached.
charset
Type: System..::..String
The character charset of the attachment filename.

Examples

To construct an attachment, create an instance and provide the required file name.
CopyMime Attachment
Attachment att = new Attachment("c:\tmp\image.gif", "us-ascii");

CopyMime Attachment
Attachment att = new Attachment("c:\tmp\image.gif", "us-ascii")

See Also