Catalyst Internet Mail .NET

InternetMail.ClearMessage Method 

Clear the header and body of the current message.

[Visual Basic]
Public Function ClearMessage() As Boolean
[C#]
public bool ClearMessage();

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.

Remarks

The ClearMessage method clears the current message, releasing the memory allocated for the message and any attachments.

See Also

InternetMail Class | SocketTools Namespace