tfSmtpUserFreeSession

Jump to: navigation, search

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


Returns

  • TM_ENOERROR
    Success.
  • TM_EINVAL
    Invalid SMTP client session handle.


Table of Contents >> Optional Protocols >> SMTP