Email Factory for .NET

Attachment Constructor (String, Byte[])

Constructs a new

Attachment
instance.

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

Parameters

file
The file to be attached.
data
The byte[] data for attachment.

Remarks

The default character set is us-ascii.

Example

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

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

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

See Also

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