NlMakesis Y-Browser Y-Tasks
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.....
That's rather difficult without a look at the relevant code parts ...
René Brunner
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);
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?
_LIT(ktext, "subject") ; _LIT(kBody, "Body") ;
Looking at CSendAsLogic::NewL: NewL(const TUid &aBioMessageType=TUid::Null(), TBool aAlwaysSendBody=EFalse);
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?
Thanks Andreas,
That works.
This time i am passing the richtext also.
Forum posts: 1242
That's rather difficult without a look at the relevant code parts ...
René Brunner
Forum posts: 17
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);
Forum posts: 1242
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
Forum posts: 17
_LIT(ktext, "subject") ;
_LIT(kBody, "Body") ;
Forum posts: 672
Looking at CSendAsLogic::NewL:
NewL(const TUid &aBioMessageType=TUid::Null(), TBool aAlwaysSendBody=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?
Forum posts: 17
Thanks Andreas,
That works.
This time i am passing the richtext also.