how to send text sms in symian c++?
http://wiki.forum.nokia.com/index.ph...aging_Articles
please go through above link.
Thanks,
Regards,
Santhosh.
Have you really thought that you are the very first person who has wanted to send an SMS in Symbian C++ ever?
void CAppUi::SendSMSL()
{
RSendAs sendAs;
TInt err = sendAs.Connect();
if (err) {
// TODO: Error handling
return;
}
CleanupClosePushL(sendAs);
RSendAsMessage sendAsMessage;
sendAsMessage.CreateL(sendAs, KUidMsgTypeSMS);
CleanupClosePushL(sendAsMessage);
// Add the receiver
_LIT(KReceiver, "+358123123123");
sendAsMessage.AddRecipientL(KReceiver, RSendAsMessage::ESendAsRecipientTo);
// Set the body text
_LIT(KBodyText, "Hello!");
sendAsMessage.SetBodyTextL(KBodyText);
// Send the message
sendAsMessage.SendMessageAndCloseL();
CleanupStack::Pop(); // sendAsMessage (already closed)
CleanupStack::PopAndDestroy(); // sendAs
_LIT(KInfoText, "Message sent.");
iAppView->LogPrintL(KInfoText);
}
iAppView->LogPrintL(KInfoText); this line give error in s60 3rd edition sdk how to show alert instead this(iAppView)...
j2me