Deleting an SMTP Mobility Account

This tutorial explains how to delete an SMTP mobility account.

Procedure

Note: This task removes the SMTP account override for the IAPs that SMTP mobility account is associated with.
  1. Create an instance of theCEmailAccounts class.

  2. Use the CEmailAccounts::GetSmtpMobilityAccountL function to get the ID of the SMTP mobility account that has to be deleted.

  3. Delete the SMTP mobility account from the central repository using CEmailAccounts::DeleteSmtpMobilityAccountL function with the following parameters:

    IMPORT_C void DeleteSmtpMobilityAccountL(const TSmtpMobilityAccount& aAccount);