| |
| INT Command( |
| |
LPCTSTR lpszCommand, |
|
| |
LPCTSTR lpszParameter |
|
| ); |
The Command method sends a command to the server,
and returns the result code back to the caller. This method is
typically used for site-specific commands not directly supported by
the API.
Parameters
- lpszCommand
- The command which will be executed by the server.
- lpszParameter
- An optional command parameter. If the command requires more
than one parameter, then they should be combined into a single
string, with a space separating each parameter. If the command does
not accept any parameters, this value may be NULL.
Return Value
If the command was successful, the method returns the result code.
If the command failed, the method returns SMTP_ERROR. To get extended
error information, call GetLastError.
Remarks
A list of valid commands can be found in the technical
specification for the protocol. Many servers will list supported
commands when the HELP command is used.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csmtpv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|
|