×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    30

    Open Send UI with chosen mailbox for new email instead of 'mailbox in use' possible?

    Hi everyone,

    On the project I am working on, we have a button that directly opens the UI view of a new email when the user wants to write a new email. Until now, when more than 1 mailbox exist, the new email is opened via the mailbox in use. We only use this code:

    CSendUi* sendUi = CSendUi::NewL();
    CleanupStack::PushL(sendUi);
    CMessageData* message = CMessageData::NewLC();
    sendUi->CreateAndSendMessageL( KSenduiMtmSmtpUid, message, KNullUid );
    CleanupStack::PopAndDestroy(2); // message, sendUi

    Now, we would like to be able to specify what mailbox to use. I can list them but it doesn't work passing the method CreateAndSendMessageL the mailbox's uid.

    Any idea if it is possible?

    Thanks!!!!

    Sih.

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Open Send UI with chosen mailbox for new email instead of 'mailbox in use' possib

    Well I did it with RSendAsMessage here
    http://blogs.forum.nokia.com/blog/pa...rsendasmessage
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    30

    Re: Open Send UI with chosen mailbox for new email instead of 'mailbox in use' possib

    Hi Paul,

    I also managed to list the mailboxes names and UIDs, but now I would like to open the message editor using a mailbox the user chooses from a listbox. Listbox also was no problem.
    BUT I can't pass the mailbox UID to the CreateAndSendMessageL(), nothing happens. It doesn't leave but doesn't open the message editor neither! The documentation says the first parameter is the UID of the sending service. If you pass KSenduiMtmSmtpUid to it, it opens the message editor using the mailbox in use.

    So any more ideas?

    Thanks, Sih.

  4. #4
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: Open Send UI with chosen mailbox for new email instead of 'mailbox in use' possib

    Why don't you use RSendAsMessage and save yourself the trouble?
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

Similar Threads

  1. open and send jpg using socket
    By smallfish_ntu in forum Symbian
    Replies: 7
    Last Post: 2004-05-22, 15:29
  2. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46
  3. How to send complete email settings?
    By kick121 in forum Smart Messaging
    Replies: 2
    Last Post: 2003-02-26, 05:48
  4. Needs to send Ringtones and Logos via email
    By hiteshkaku in forum Smart Messaging
    Replies: 1
    Last Post: 2002-11-22, 06:30
  5. open email attachment in Series60?
    By bcchong in forum Symbian
    Replies: 0
    Last Post: 2002-07-09, 00:11

Posting Permissions

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