Categories: Symbian C++ | Code Examples | How To | SMS | MMS | UI
This page was last modified 18:02, 2 July 2008.
How to Open SMS or MMS Editor
From Forum Nokia Wiki
#include <sendui.h> #include <txtrich.h> #include <senduiconsts.h> #include <cmessagedata.h> Link against: Sendui.lib etext.lib
_LIT(KAddress, "07738123456"); _LIT(KAlias, "Sam"); _LIT(KBodyData, "This is the message body"); _LIT(KSubject, "This is the subject"); CSendUi* sendAppUi = CSendUi::NewLC(); CMessageData* message = CMessageData::NewLC(); CRichText* richText = CRichText::NewL(iEikonEnv->SystemParaFormatLayerL(), iEikonEnv->SystemCharFormatLayerL()); CleanupStack::PushL(richText); // Add an address // Note, there are also options for the CC address // and Bcc adress used in email message->AppendToAddressL(KAddress, KAlias); // Add a subject line message->SetSubjectL(&KSubject); richText->InsertL(0, KBodyData); message->SetBodyTextL(richText); sendAppUi->CreateAndSendMessageL(KSenduiMtmSmsUid, message, KNullUid, ETrue); CleanupStack::PopAndDestroy(3);
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| can't open Nokia MMS Java Library | barnsley | General Messaging | 3 | 2004-08-28 05:44 |
| Download and open a MMS file | cyclid | General Messaging | 0 | 2007-03-14 23:23 |
| Help......Urgent | Kapil Kaushik | General Symbian C++ | 8 | 2005-12-21 13:49 |
| editor control | nirmala_cv | General Symbian C++ | 0 | 2002-12-02 11:41 |
| Nokia 6385 (CDMA) SMS AT Commands | vwpau | General Messaging | 4 | 2008-01-17 16:34 |
