This tutorial explains how to delete the existing SNAP preference used by an email account.
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 either Imap4, Pop3, or Smtp.
Populate the CImIAPPreferences
class
and the CIm<protocol>Settings
class from central repository
(CenRep) using CEmailAccounts
::Load<protocol>SettingsL
function.
Use the CImIAPPreferences::DeleteSnap()
function
to delete SNAP preferences that are used for the connection.
Specify the IAP preference
by using the existing CImIAPPreferences
APIs.
Store the updated settings
classes to CenRep using the CEmailAccounts
::Save<protocol>SettingsL
function.
Note: All instances of <protocol> in the preceding steps are either
Imap4
, Pop3
,
or Smtp
.