| INT WINAPI SmtpCloseMessage(
|
| |
HCLIENT hClient |
|
| );
|
The SmtpCloseMessage function ends the composition of the
current message. The server then queues the message for delivery to
each recipient specified by the client.
Parameters
- hClient
- Handle to the client session.
Return Value
If the function succeeds, the return value is zero. If the
function fails, the return value is SMTP_ERROR. To get extended
error information, call SmtpGetLastError.
Remarks
The SmtpCloseMessage function should be called after all
of the message data has been written to the data stream.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cstools7.h.
Library: Use csmtpav7.lib.
Unicode: Implemented as Unicode and ANSI versions.
See Also
SmtpAppendMessage, SmtpCreateMessage, SmtpWrite
|