AlternateView.SetContentFromFile Method
Namespace: Rebex.Mail
Assembly: Rebex.Mail.dll (version 7.0.9313)
SetContentFromFile(String, String)
Sets the content of this view to data read from the specified file and sets media type.
Declaration
public void SetContentFromFile(string fileName, string mediaType)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to read data from. |
| String | mediaType | Media type. |
SetContentFromFile(String)
Sets the content of this view to data read from the specified file.
Declaration
public void SetContentFromFile(string fileName)
Parameters
| Type | Name | Description |
|---|---|---|
| String | fileName | Path to the file to read data from. |
Remarks
Media type is set to 'text/plain'.