Configuring the TLS or SSL Socket
You can configure an email account for the following using the SetTlsSslDomainL() function.
Specifying the Domain Name for Certificate Validation
Removing the Domain Name for Certificate Validation