×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Dec 2004
    Posts
    12

    RSendAsMessage KErrServerTerminated

    I'm developping a custom MTM. From the mail viewer of this custom MTM, I have to create a new message and re-open the viewer. (create a new mail with in recipient an email extract from the mail viewed)

    I have tried to use RSendAs/RSendAsMessage API.
    Unfortunately, that is perfect in the emulator (SDK S60 3rd FP1) and not on device (E61 and E61i)


    void OpenMailAddr(const TDesC& aMailAddr)
    {
    RSendAs sendAs;
    User::LeaveIfError(sendAs.Connect());
    CleanupClosePushL(sendAs);

    RSendAsMessage sendAsMessage;
    TRAPD(err, sendAsMessage.CreateL(sendAs, KUidESEmailMtmMsgType)); // <- err=KErrServerTerminated
    CleanupClosePushL(sendAsMessage);

    // prepare the message
    sendAsMessage.AddRecipientL(aMailAddr, RSendAsMessage::ESendAsRecipientTo);

    sendAsMessage.LaunchEditorAndCloseL();
    CleanupStack::Pop();
    CleanupStack::PopAndDestroy();
    }


    1) sendAsMessage.CreateL method leave with KErrServerTerminated exception, why ?
    2) Is there another API to do the same thing ?

    Regards,
    Sylvain

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: RSendAsMessage KErrServerTerminated

    Hi dude,
    If I thinking right....
    You can use CSendUi class instead of RSendAs class for sending Email/MMS/SMS from MTM.

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

    Re: RSendAsMessage KErrServerTerminated

    Could it be that its caused by missing capabilities ?

  4. #4
    Registered User
    Join Date
    Dec 2004
    Posts
    12

    Re: RSendAsMessage KErrServerTerminated

    Thx for the reply but we have full capabilities.

    Our project is compiled with "ALL -TCB"
    Last edited by Altexia; 2008-01-28 at 10:15.

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

    Re: RSendAsMessage KErrServerTerminated

    Personally I would use the correct SDK - 3.0 MR and not FP1 which is suitable only for FP1 devices and later (ie the E61 is not an FP 1 device)

  6. #6
    Registered User
    Join Date
    Dec 2004
    Posts
    12

    Re: RSendAsMessage KErrServerTerminated

    I use this SDK for N95 and I have the same effect.

Similar Threads

  1. RSendAs and RSendAsMessage in 3rd phone
    By Wah in forum Symbian Networking & Messaging (Closed)
    Replies: 7
    Last Post: 2007-11-29, 19:06
  2. delivery report using RSendAs and RSendAsMessage
    By Giulio2000 in forum General Messaging
    Replies: 3
    Last Post: 2007-03-19, 03:17
  3. Problem of RSendAsMessage
    By beover1984 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-11-28, 12:38
  4. Another problem when using rsendas and rsendasmessage
    By xhsoldier in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-07-18, 12:25
  5. Another problem when using rsendas and rsendasmessage
    By xhsoldier in forum General Messaging
    Replies: 4
    Last Post: 2006-06-27, 09:02

Posting Permissions

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