Sets the content of this attachment to data read from the specified file.

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

Syntax

C#
public void SetContentFromFile(
	string fileName
)
Visual Basic (Declaration)
Public Sub SetContentFromFile ( _
	fileName As String _
)
Visual C++
public:
void SetContentFromFile(
	String^ fileName
)

Parameters

fileName
Type: System..::.String
Path to the file to read data from.

Remarks

File name is determined from the path. Media type is set to 'application/octet-stream'.

See Also