Email Factory for .NET

Attachment Constructor (String, String)

Constructs a new

Attachment
instance.

public Attachment(
   string file,
   string charset
);

Parameters

file
The file to be attached.
charset
The character charset of the attachment filename.

Example

To construct an attachment, create an instance and provide the required file name.

[CS]
Attachment att = new Attachment("c:\tmp\image.gif", "us-ascii");

[Visual Basic]
Attachment att = new Attachment("c:\tmp\image.gif", "us-ascii")

See Also

Attachment Class | Jscape.Email Namespace | Attachment Constructor Overload List