library/src/network/email/BP-EmailSMTP.cc
// destroys a smtp email session ( destroy the smtp session )
destroys a smtp email session ( destroy the smtp session )
destroys a smtp email session ( destroy the smtp session )
BP_ERROR_T BP_CloseDestroySMTPEmailSession(P_BP_EMAIL_SMTP_SESSION session)
{
	if(!session)
		return ERR_FAILURE;
	size_t n = 0;
    curl_easy_cleanup(session->curl);
    bpfree(session);
    return ERR_SUCCESS;
}
BP_ERROR_T BP_CloseDestroySMTPEmailSession ( P_BP_EMAIL_SMTP_SESSION session ) { if ( ! session ) return ERR_FAILURE ; size_t n = 0 ; curl_easy_cleanup ( session -> curl ) ; bpfree ( session ) ; return ERR_SUCCESS ; }
destroys a smtp email session ( destroy the smtp session )
destroys a smtp email session ( destroy the smtp session )
// check for session // set n to zero // clean curl // bpfree the session data // return indicating success