Initializes a new instance of a Attachment with the content of the specified file and with a media type and suggested name.

Namespace:  Rebex.Mail
Assembly:  Rebex.Mail (in Rebex.Mail.dll) Version: 1.0.4086.0

Syntax

C#
public Attachment(
	string fileName,
	string name,
	string mediaType
)
Visual Basic (Declaration)
Public Sub New ( _
	fileName As String, _
	name As String, _
	mediaType As String _
)
Visual C++
public:
Attachment(
	String^ fileName, 
	String^ name, 
	String^ mediaType
)

Parameters

fileName
Type: System..::.String
Path to the file to provide data for the attachment.
name
Type: System..::.String
A suggested name of the attachment.
mediaType
Type: System..::.String
A MIME media type of the file.

See Also