SocketTools .NET Edition

MailMessage.ImportMessage Method 

Replace the current message with the contents of a file.

[Visual Basic]
Public Function ImportMessage( _
   ByVal fileName As String _
) As Boolean
[C#]
public bool ImportMessage(
   string fileName
);

Parameters

fileName
A string which specifies the name of the text file to import.

Return Value

This method returns a boolean value. If the method succeeds, the return value is true. If the method fails, the return value is false. To get extended error information, check the value of the LastError property.

See Also

MailMessage Class | SocketTools Namespace