tfSmtpUserGetLastServerResponse
Table of Contents >> Optional Protocols >> SMTP
| #include <trsocket.h> |
| int tfSmtpUserGetLastServerResponse | ( |
| ttSmtpClientHandle smtpClientHandle, | |
| char * bufferPtr, | |
| int bufferSize | |
| ); |
Function Description
The user can retrieve the last response received from the SMTP server as a string by calling this API. The response message is updated after each of the following calls:
Parameters
- smtpClientHandle
- The SMTP client session handle as returned by tfSmtpUserNewSession().
- bufferPtr
- A pointer to the buffer to store the server response string.
- bufferSize
- The length of the string pointed to by bufferPtr.
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- Invalid SMTP client session handle, bufferPtr is NULL or bufferSize is <= 0.