Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 14:00, 14 February 2008.

Sending VCal using RsendAsMessage

From Forum Nokia Wiki


Code for sending emails

Following is sample code to send VCal as SMS.
RSendAs sendas;
    TInt res = sendas.Connect();
    User::LeaveIfError(res);
    CleanupClosePushL(sendas);
  
    RSendAsMessage message;
    TRAP(res, message.CreateL(sendas, KSenduiMtmSmsUid));
    User::LeaveIfError(res);
    CleanupClosePushL(message);
 
    message.SetBioTypeL(KMsgBioUidVCalendar);
    TBuf<512> MsgText;
    MsgText.Copy(_L("//SKCE2\r\nBEGIN:VCALENDAR\r\nVERSION:1.0    \r\nBEGIN:VEVENT\r\nDESCRIPTION:Staff Meeting\r\nDTSTART:20080704T100000\r\nDTEND:20080704T120000\r\nEND:VEVENT\r\nEND:VCALENDAR\r\n"));
    message.SetBodyTextL(MsgText);
    TBuf<15> RecAdd;
    RecAdd.Copy(_L("123456789"));
    message.AddRecipientL(RecAdd,RSendAsMessage::ESendAsRecipientTo );
 
 
    message.SendMessageAndCloseL();
    CleanupStack::Pop(1); // RMessage
    CleanupStack::PopAndDestroy(1); // RSendAs
Related Discussions
Thread Thread Starter Forum Replies Last Post
How to send MMS in 2nd edition? yosr eman Symbian Networking & Messaging 6 2008-06-25 13:48
How to groupsend sms? yuankaixin Symbian Networking & Messaging 2 2007-06-26 12:33
CSendUi::CreateAndSendMessageL And DRM capability rami75lu Symbian Signing, Certification and Security 2 2006-10-18 18:20
Sending/receiving SMS on numbered port npema Symbian Networking & Messaging 0 2004-09-07 16:23
Problem in sending mail harshalpatil Mobile Java General 2 2007-11-15 06:45
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZmessagingQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtopicQUqfnTopicZsmsQ
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX