CQikSendAsDialog problem in setting body text

Login to reply to this topic.
Wed, 2008-06-11 08:34
Joined: 2008-04-01
Forum posts: 17

Hi,

i have used the CQikSendAsDialog for to invoke the sendas dialog,

but i am facing problem in passing body text,

i am able to pass subject, that comes nicely,
but if i pass body text that is not in the mms/email application

can anybody please help me.....


Wed, 2008-06-11 08:47
Joined: 2005-11-20
Forum posts: 1242
Re: CQikSendAsDialog problem in setting body text

That's rather difficult without a look at the relevant code parts ...


René Brunner

Wed, 2008-06-11 09:08
Joined: 2008-04-01
Forum posts: 17
Re: CQikSendAsDialog problem in setting body text

hi brunner,

i have posted that, assuming that sombody would have faced that problem, thats y i didnt paste the code,

now heres my code,

TUid capabilityId = KUidMtmQuerySendAsMessageSendSupport;
CQikSendAsLogic* SendAsLogic = CQikSendAsLogic::NewL() ;
SendAsLogic->SetSubjectL(ktext);
SendAsLogic->SetBodyTextL(kBody) ;
CQikSendAsDialog::RunDlgLD(SendAsLogic, capabilityId);

Wed, 2008-06-11 09:19
Joined: 2005-11-20
Forum posts: 1242
Re: CQikSendAsDialog problem in setting body text

Well, looks ok (although I did not use it myself so far, so no first-hand experience), but say, what's kBody and how do you fill it?


René Brunner

Wed, 2008-06-11 09:34
Joined: 2008-04-01
Forum posts: 17
Re: CQikSendAsDialog problem in setting body text

_LIT(ktext, "subject") ;
_LIT(kBody, "Body") ;

Wed, 2008-06-11 09:49
Joined: 2003-12-05
Forum posts: 672
Re: CQikSendAsDialog problem in setting body text

Looking at CSendAsLogic::NewL:
NewL(const TUid &aBioMessageType=TUid::Null(), TBool aAlwaysSendBody=EFalse);

aAlwaysSendBody : Set to ETrue if the bodytext should be shown in email, default EFalse .

So when you are constructing the CSendAsLogic this way, the default is that the body text is not shown. Maybe this is the problem?

Wed, 2008-06-11 16:55
Joined: 2008-04-01
Forum posts: 17
Re: CQikSendAsDialog problem in setting body text

Thanks Andreas,

That works.

This time i am passing the richtext also.

  • Login to reply to this topic.