×

Discussion Board

Results 1 to 5 of 5

Thread: Email account

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    4

    Email account

    Hi,

    I tried to use Symbian email account creation example but it doesn't work. There's no any error but I can't see the account
    after running the code.
    I have s60 3rd edition, fp2 SDK.
    Would like to create imap and smtp email accounts.

    Thank you,
    M.

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    4

    Re: Email account

    Even this short code doesn't work.
    Is it only the FP2 version?


    CImImap4Settings* imapSet = new (ELeave) CImImap4Settings;
    CleanupStack::PushL(imapSet);
    CImIAPPreferences* imapIap = CImIAPPreferences::NewLC();

    // populate the setting objects with default values
    CEmailAccounts* account = CEmailAccounts::NewLC();
    account->PopulateDefaultImapSettingsL(*imapSet, *imapIap);

    // update settings
    imapSet->SetLoginNameL(_L8("a"));
    imapSet->SetPasswordL(_L8("a"));

    // create IMAP account
    TImapAccount imapAccount = account->CreateImapAccountL(_L("ujvalami"), *imapSet, *imapIap, EFalse);
    CleanupStack::PopAndDestroy(3);

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,671

    Re: Email account

    Can you test your code in the emulator? In that case you could easily check if anything has happened, via searching for the strings you provide (even for the 8-bit strings, which are a bit easier to search for).

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    4

    Re: Email account

    Yes, I can test with the emulator.
    The thing is that this is an example code so it should work as it is, I think.

  5. #5
    Registered User
    Join Date
    Jan 2005
    Location
    Italy
    Posts
    639

    Re: Email account

    Hello Walaky,
    there are some problems with mail accounts creation in 3rd edition.... i encountered them for MR and FP1, maybe something similar for FP2 too...

    Here is the official position of Nokia:
    http://wiki.forum.nokia.com/index.ph...ilAccounts_API

    and here is a "free" solution for FP1... the bad thing is that sometimes things got messed up after creating and deleting the same account for a few times:
    http://discussion.forum.nokia.com/fo...il+account+FP1

    hope it helps
    pg

Similar Threads

  1. How to Get Default Email Account!
    By kis_spn in forum Symbian
    Replies: 2
    Last Post: 2008-05-06, 09:42
  2. Determine if "new e-mail alert" is on for an email account
    By kthui in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2007-07-30, 12:24
  3. Create Email account
    By hjrajala in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-02-16, 15:33
  4. Provisioning email account on Series 80 (9500)
    By alexfeinman@hotmail.com in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2006-01-11, 01:03
  5. S60: replace an existing email account
    By BC007b in forum OMA DM/DS/CP
    Replies: 0
    Last Post: 2005-09-21, 14:05

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×