SocketTools .NET Edition

SmtpClient.CloseMessage Method 

Closes the current message.

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

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 CloseArticle method closes the current message that has been created and submits it to the mail server for delivery.

See Also

SmtpClient Class | SocketTools Namespace