Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

How to send email if email body contain html tag

Hi, I want to send email.

I'm using InvokeManager, and it is working.

 

But when email body contain html tag, the tag also visible.

How to send email if body contain html tag?

 

 

Thanks

Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to send email if email body contain html tag

I'm try set mimeType as text/html but also not working

 

request.setMimeType("text/html");

 

How to do this?

 

 

Thanks

Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to send email if email body contain html tag

Hi,  any idea?

 

 

Thanks

Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

Re: How to send email if email body contain html tag

Some news about this?

Developer
Posts: 237
Registered: ‎11-24-2012
My Device: Blackberry 10 Dev Alpha
My Carrier: Telkomsel

Re: How to send email if email body contain html tag

I think I'm add percent Encoding.

 

void MyClass::invokeEmail(const QString &aSubject, const QString &aBody)
	{
	InvokeManager invokeManager;
	InvokeRequest request;
	request.setTarget("sys.pim.uib.email.hybridcomposer");
	request.setAction("bb.action.SENDEMAIL");
	request.setMimeType("text/html");
	QByteArray subjectba = QUrl::toPercentEncoding(aSubject);
	QByteArray bodyba = QUrl::toPercentEncoding(aBody);
	QString subject(subjectba);
	QString body(bodyba);
	request.setUri("mailto:?subject=" + subject + "&body=" + body);
	InvokeTargetReply *reply = invokeManager.invoke(request);
	}

 Maybe you can try that code