This tutorial explains how to configure an IMAP, POP or SMTP email account to remove the domain name when connecting to a server using secure TLS or SSL sockets.
Create an instance of
the CEmailAccounts class.
Create an instance of
the CImIAPPreferences class to be used by the email service.
Create an instance of
the CIm<protocol>Settings class.
Where, <protocol> is Imap4, Pop3, or Smtp.
Populate the CImIAPPreferences class
and the CIm<protocol>Settings class from central repository
(CenRep) using CEmailAccounts ::Load<protocol>IapSettingsL function.
Use the CIm<protocol>Settings:: SetTlsSslDomainL() function
to pass KNullDesC8 to clear the existing domain name.
Store the updated settings
classes to CenRep using the CEmailAccounts ::Save<protocol>IapSettingsL function.
Note: All instances of <protocol> in the preceding steps are either
Imap4, Pop3,
or Smtp.