Email Factory for .NET

Attachment Constructor (String)

Constructs a new

Attachment
instance.

public Attachment(
   string file
);

Parameters

file
The file to be attached.

Remarks

The default character set is us-ascii.

Example

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

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

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

See Also

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