This tutorial explains how to define the SNAP preference to be used by an email account.
Before you configure an email account to support bearer mobility, you have to define the SNAP preference for an email account. To define SNAP preference, complete the following steps:
Create an instance of the CEmailAccounts class.
Create an instance of the CImIAPPreferences class to be used by the email service.
Use the CImIAPPreferences::SetSnap() function to specify the SNAP to be used for connections.
Create an instance of the CImSmtpSettings class, and populate with required access settings
Create an instance of the CIm<protocol>Settings class, and populate with required access settings.
Where, <protocol> is either Imap4 or Pop3.
Create the associated IMAP4, POP3, or SMTP accounts in the central repository using the appropriate CEmailAccounts ::Create<protocol>AccountL() function.
An instance of one of the derived classes is used with an instance of CImIAPPreferences to configure an email account. These are stored and retrieved from the central repository through the CEmailAccounts ::Save<protocol>SettingsL function.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.