Catalyst Internet Mail .NET

InternetMail.AttachData Method (String)

Attach the contents of a string to the current message.

[Visual Basic]
Overloads Public Function AttachData( _
   ByVal buffer As String _
) As Boolean
[C#]
public bool AttachData(
   string buffer
);

Parameters

buffer
A string that contains the data to be attached to the message.

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 contents of the buffer will be attached to the message as inline content with a content type of text/plain.

This implementation of the method should never be used to attach binary data to a message. If you need to attach binary data, use the implementation of that accepts a byte array as the buffer parameter.

See Also

InternetMail Class | SocketTools Namespace | InternetMail.AttachData Overload List