Symbian C ++电子邮件 - 代码 - 应用程序崩溃

时间:2010-10-26 03:59:45

标签: symbian

我使用以下代码在symbian c ++中发送电子邮件(我使用Symbian_3_SDK_v0_9_en在Windows 7中进行开发)

当行“sendAsMessage.CreateL(send,KUidMsgTypeSMTP);”时,我的应用程序崩溃了达到。

请帮助我..如何解决这个问题。我是symbian c ++的新手。提前致谢

    RSendAs send;
    User::LeaveIfError(send.Connect());
    CleanupClosePushL(send);

    RSendAsMessage sendAsMessage;

    sendAsMessage.CreateL(send, KUidMsgTypeSMTP);
    CleanupClosePushL(sendAsMessage);

    sendAsMessage.SetSubjectL(_L("Welcome back to symbian"));
    sendAsMessage.AddRecipientL(_L(
                                  "123@gmail.com"),RSendAsMessage::ESendAsRecipientTo);          
   //adding to field
   sendAsMessage.SetBodyTextL(_L("somebody@world.com"));

   TRequestStatus status;
   //adding attachments
   //  sendAsMessage.AddAttachment(_L("c:\\splash.bmp"),status);
   //   User::WaitForRequest(status);

    sendAsMessage.SendMessageAndCloseL();
    CleanupStack::Pop();
    CleanupStack::PopAndDestroy();

1 个答案:

答案 0 :(得分:1)

通常情况下“我的应用程序崩溃”信息不足 - 应用程序是如何崩溃的?什么是恐慌代码和恐慌原因?

相关问题