Sets the content of this attachment to data read from the specified file and sets media type and file name.
Namespace:
Rebex.MailAssembly: Rebex.Mail (in Rebex.Mail.dll) Version: 1.0.3844.0
Syntax
| C# |
|---|
public void SetContentFromFile( string fileName, string name, string mediaType ) |
| Visual Basic (Declaration) |
|---|
Public Sub SetContentFromFile ( _ fileName As String, _ name As String, _ mediaType As String _ ) |
| Visual C++ |
|---|
public: void SetContentFromFile( String^ fileName, String^ name, String^ mediaType ) |
Parameters
- fileName
- Type: System..::.String
Path to the file to read data from.
- name
- Type: System..::.String
File name to assign to the content.
- mediaType
- Type: System..::.String
Media type.