×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Create mail account in S60 3rd FP1

    Hi,

    Is there something special when creating mail accounts between Symbian 9.1 and 9.2?

    I am using CEmailAccounts to create mail accounts. Code works perfectly in S60 3rd and UIQ3 emulators. However in S60 3rd FP1 emulator, the created account does not show in Messaging. The account can be found in the list when setting shortcut key and able to access the account through the assigned shortcut key. When viewing the account, no tab pages shown that normally should allow user to view "Draft", "Sent"... folder. When done viewing the account and select "Back" expecting to show the Messaging main menu, panic occurs:

    Application closed:
    Messaging
    EIKON-LISTBOX 5

    Thanks in advance

    Edit: Code used for creating mail account
    Code:
        CImPop3Settings* settings = new(ELeave) CImPop3Settings();
        CleanupStack::PushL(settings);
        settings->Reset();
        settings->SetServerAddressL(KPopServer);
        settings->SetLoginNameL(KPopLoginName); 
        settings->SetPasswordL(KPopPassword);
        settings->SetPort(110);
        settings->SetGetMailOptions(EGetPop3EmailMessages);
        settings->SetPopulationLimitL(1);
        settings->SetDeleteEmailsWhenDisconnecting(ETrue);
        settings->SetDisconnectedUserMode(ETrue);
        settings->SetAutoSendOnConnect(ETrue);
    
        CImSmtpSettings *smtpSettings = new (ELeave) CImSmtpSettings();
        CleanupStack::PushL(smtpSettings);
        smtpSettings->Reset();
        smtpSettings->SetServerAddressL(KSmtpServerAddress);
        smtpSettings->SetEmailAliasL(KEmailAlias);
        smtpSettings->SetEmailAddressL(KSmtpEmailAddress);
        smtpSettings->SetReplyToAddressL(KSmtpEmailAddress);
        smtpSettings->SetReceiptAddressL(KSmtpEmailAddress);
        smtpSettings->SetPort(25);
    
        CImIAPPreferences* popIAP = CImIAPPreferences::NewLC();
        TImIAPChoice choice;
        choice.iIAP = 0;
        choice.iDialogPref = ECommDbDialogPrefDoNotPrompt;   	
        TInt num = popIAP->NumberOfIAPs();
        if (num > 0) 
            {
            popIAP->ReplaceIAPL(0, choice);
            }
        else 
            {
            popIAP->AddIAPL(choice, 0);
            }
        CEmailAccounts* emailAccounts = CEmailAccounts::NewLC();
        TPopAccount iPopAccount = emailAccounts->CreatePopAccountL(KTxtAccountName, *settings, *popIAP, EFalse);
        TSmtpAccount iSmtpAccount = emailAccounts->CreateSmtpAccountL(iPopAccount, *smtpSettings, *popIAP, EFalse);
        
        emailAccounts->SetDefaultSmtpAccountL(iSmtpAccount);
        
        CleanupStack::PopAndDestroy(4);
    Last edited by kthui; 2007-07-31 at 03:55.

  2. #2
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Hi,

    I later follow Pop3Example in this link and still no luck (MAsyncWaiter.h code is the same as pop3Example.cpp?)
    http://www.symbian.com/developer/tec...agingEx%2epop3

  3. #3
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Hi,

    Today I found that it is the problem only on S60 3rd FP1.
    I have test using UIQ3.1 emulator and mailbox are shown in its Messaging application.
    Therefore it should not be the problem of Symbian 9.2.
    Do I need to have extra settings for our programmatically created mailbox to be visible in S60 3rd FP1 Messaging application?

    Thank you!

  4. #4
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Hi,

    Does anyone know the solution? Thank you!

  5. #5
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Hi,

    Tried the Pop3Example (C:\Symbian\9.3\S60_3rd_FP2_Beta\Examples\Messaging\Pop3Example) coming with the 3rd FP2 Beta SDK. The account created is not shown on emulator Messaging application. Any clue? Thanks

  6. #6
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Hi all,

    Is there any work around now? Thank you very much!

  7. #7
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    350

    Re: Create mail account in S60 3rd FP1

    Hi! Have you found any solutions to it?
    Today I discovered the same stuff - in E90 and N95 the mailboxes are not visible (they are created - when I delete them in my code I can see their names)
    "I only know that I know nothing." (Socrates)

  8. #8
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Quote Originally Posted by rihoe View Post
    Hi! Have you found any solutions to it?
    Today I discovered the same stuff - in E90 and N95 the mailboxes are not visible (they are created - when I delete them in my code I can see their names)
    I still have not found any solution yet.
    A temporary solution is to show our created mail accounts from our application option menu.

    I still hope there is a more appropriate solution to the problem.

  9. #9
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    350

    Re: Create mail account in S60 3rd FP1

    According to Nokia this feature now needs internal
    API.
    "I only know that I know nothing." (Socrates)

  10. #10
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Create mail account in S60 3rd FP1

    Sorry to be late on replying here, must have missed this somehow, anyway if you want to work around the problem, you could use device management plug-ins, as explained in: http://wiki.forum.nokia.com/index.ph...ement_Settings

    The email plug-in is utilizing the internal API correctly, thus you should get it working quite fine. Also remember to check this wiki page: http://wiki.forum.nokia.com/index.ph...ement_plug-ins

  11. #11
    Regular Contributor
    Join Date
    Jan 2005
    Location
    Estonia
    Posts
    350

    Re: Create mail account in S60 3rd FP1

    Yes, but some secret UID is still needed.
    I wonder who is afraid that users will start entering email accounts...
    "I only know that I know nothing." (Socrates)

  12. #12
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Create mail account in S60 3rd FP1

    Did you actually read the second link. Also try out the example in a real device: http://wiki.forum.nokia.com/index.ph...GetPlugIns.zip

  13. #13
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Thanks Jukka!
    I can create and view the mailbox from Messaging app now!

    However when I use the example in this link
    http://wiki.forum.nokia.com/index.php/ImageM_GetPlugIns.zip
    and add the following code

    DM_GetUIDVals.cpp
    Code:
    void CDM_GetUIDValsAppUi::HandleCommandL( TInt aCommand )
    {
        
        switch( aCommand )
            {
            case EReadAll:
            	{
        		...
    iResultsContainer->FinalizeAddTextL();
    
                TBuf<256> name;
                CAknTextQueryDialog* dialog = CAknTextQueryDialog::NewL(name, CAknQueryDialog::ENoTone);
                dialog->PrepareLC(R_GETBUF_DIALOG);
                dialog->SetPromptL(_L("Account Name"));
                if (dialog->RunLD())
                    {
                    }
            	}
            	break;
            case EEikCmdExit:
            case EAknSoftkeyExit:
                Exit();
                break;
            default:
                break;
            }
        }
    DM_GetUIDVals.rss
    Code:
    RESOURCE DIALOG R_GETBUF_DIALOG
        {
        flags = EGeneralQueryFlags;
        buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
        items=
            {
            DLG_LINE
                {
                type = EAknCtQuery;
                id = EGeneralQuery;
                control= AVKON_DATA_QUERY 
                    { 
                    layout = EDataLayout;
                    control = EDWIN
                        { 
                        flags= EEikEdwinNoHorizScrolling | EEikEdwinResizable; 
                        maxlength = 256; 
                        width = 4; 
                        lines = 1; 
                        };
                    };
                }
            };
        }
    The app panic with FeatMgr 0 in S60 3rd FP1 emulator
    May I know where is the explanation of this error?

    Also, will the UID retrieved the same in future version?

    Thank you so much!

  14. #14
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,167

    Re: Create mail account in S60 3rd FP1

    As the values are not available in public SDK, there are no quarantees that any value would stay same in future releases.

    anyway, try it on real device, it might work better than in SDK.

  15. #15
    Registered User
    Join Date
    Feb 2007
    Posts
    14

    Re: Create mail account in S60 3rd FP1

    Quote Originally Posted by symbianyucca View Post
    As the values are not available in public SDK, there are no quarantees that any value would stay same in future releases.

    anyway, try it on real device, it might work better than in SDK.
    Thank you for your answer!

    Tried on 6120c and the modified app terminates after selecting "Get plugins".

    Is the added code not allowed to work with CSmlDmAdapter?

    Thank you!

Similar Threads

  1. Volume indicator problem in S60 3rd FP1
    By JacksonZih in forum Symbian
    Replies: 1
    Last Post: 2007-11-20, 06:39
  2. S60 3rd Edition FP1 Emulator exit during registration
    By koolkool in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2007-08-02, 12:52
  3. Hotkey support in S60 3rd ed FP1
    By svdwal in forum Symbian User Interface
    Replies: 0
    Last Post: 2007-02-12, 12:09
  4. Replies: 3
    Last Post: 2006-10-20, 15:30

Posting Permissions

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