HI,
i want sent a sms to a perticular number and i am trying the below code for this,i want know how to write some text in the iRichtext instance of CRichText , in msg.SetBodyTextL(iRichtext);
Plz guide me, in urgent need...
Thanks in advance
Fairoz
sendsms(TDes16 &aRecipientNumber)
{
CRichText iRichtext;
// Open a connection with the SendAs server
RSendAs saSrv;
saSrv.Connect();
CleanupClosePushL(saSrv);
// Create your message
RSendAsMessage msg;
msg.CreateL(saSrv, KSenduiMtmSmsUid);
CleanupClosePushL(msg);
msg.AddRecipientL(aRecipientNumber,RSendAsMessage::ESendAsRecipientTo);
msg.SetBodyTextL(iRichtext);
// Send the message
msg.SendMessageAndCloseL();
// Cleanup
CleanupStack::Pop(&msg);
CleanupStack::PopAndDestroy(&saSrv);
}
// End of File






