我使用下面的代码发送的电子邮件中的Symbian C++(我用的是Symbian_3_SDK_v0_9_en在Windows 7开发)Symbian C++的电子邮件 - 代码 - 应用程序崩溃
我得到了应用程序崩溃时行“sendAsMessage .CreateL(发送,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(
"[email protected]"),RSendAsMessage::ESendAsRecipientTo);
//adding to field
sendAsMessage.SetBodyTextL(_L("[email protected]"));
TRequestStatus status;
//adding attachments
// sendAsMessage.AddAttachment(_L("c:\\splash.bmp"),status);
// User::WaitForRequest(status);
sendAsMessage.SendMessageAndCloseL();
CleanupStack::Pop();
CleanupStack::PopAndDestroy();
您的设备上是否有已定义的SMTP帐户? senMessage.CreateL离开还是恐慌?它是恐慌代码还是代码? 如果你不能回答这些问题,我恭敬地建议你从简单的事情开始发送电子邮件...... – Ola 2010-10-26 11:33:44
好的奥拉。我将在symbian C++中开始简单的应用程序,请问您可以为我指定网站吗?哪个网站有symbian C++一步一步的过程?他们遵循的是什么? .. 提前致谢。 – Finder 2010-10-26 12:51:53
developer.symbian.org? – Ola 2010-10-28 08:14:43