Email Factory for .NET

Attachment Constructor (String, Byte[], String)

Constructs a new

Attachment
instance.

public Attachment(
   string file,
   byte[] data,
   string charset
);

Parameters

file
The file to be attached.
data
The byte[] data for attachment.
charset
The character charset used in the filename.

Example

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

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

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

See Also

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