Modifying the SMTP Mobility Account Settings

This tutorial explains how to modify the SMTP mobility account settings.

Procedure

  1. Create an instance of the RArray <TSmtpMobilityAccount > class.

  2. Populate this array with the IDs of mobility accounts associated with a specified SMTP account using the following function:

    CEmailAccounts:: GetSmtpMobilityAccountsL(const TSmtpAccount& aSmtpAccount, RArray<TSmtpMobilityAccount>& aAccounts)
  3. Create an instance of the CImSmtpMobilitySettings class.

  4. Populate the CImSmtpMobilitySettings class using the following function:

    CEmailAccounts:: LoadSmtpMobilitySettingsL(const TSmtpMobilityAccount& aAccount, CImSmtpMobilitySettings& aSettings)
  5. Modify the email settings as required through CImSmtpMobilitySettings functions.

  6. Save changes to the central repository using the following function:

    CEmailAccounts:: void SaveSmtpMobilitySettingsL(const TSmtpMobilityAccount& aAccount, const CImSmtpMobilitySettings& aSettings)
Note: All instances of <protocol> in the preceding steps are either Imap4, Pop3, or Smtp.