tfSmtpUserFreeSession
Table of Contents >> Optional Protocols >> SMTP
#include <trsocket.h> |
int tfSmtpUserFreeSession | (ttSmtpClientHandle smtpClientHandle); |
Function Description
This function frees the session data structure. If the session is connected, it will be disconnected before being freed. The session handle cannot be used any more. Using a freed session handle could result in undefined behavior.
Parameters
- smtpClientHandle
- The SMTP client session handle as returned by tfSmtpUserNewSession().
Returns
- TM_ENOERROR
- Success.
- TM_EINVAL
- Invalid SMTP client session handle.