The AppendMessage method is used to append the contents of
a file, memory buffer, or global memory handle to the current message
that is being composed for delivery. To send a complete RFC 822
formatted message, refer to the SendMessage method.
This method will cause the current thread to block until the
complete message has been written, a timeout occurs or the operation
is canceled. During the transfer, the SMTP_EVENT_PROGRESS event will
be periodically fired, enabling the application to update any user
interface controls. Event notification must be enabled, either by
calling EnableEvents, or by registering a callback function
using the RegisterEvent method.
To determine the current status of a transfer while it is in
progress, use the GetTransferStatus method.