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

Adobe AIR Development

Reply
Developer
Posts: 271
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha
My Carrier: -

Adding Hyperlink in email body

Is there a way by which we can send an email with hyperlink in it. I tried the following, but the link does not appear and it is treated as plain text. Is it anyways possible?

 

var request:InvokeRequest = new InvokeRequest();
request.action = "bb.action.COMPOSE";
request.target = 'sys.pim.uib.email.hybridcomposer';
var sBody:String = "<a href='http://www.google.com/' target='_blank'>Test Content!</a>";
sBody = encodeURIComponent(sBody);
request.uri = "mailto:address@domain.com?cc=address2@domain.com&bcc=address3@domain.com&subject=A%20Subject&body="+sBody;
InvokeManager.invokeManager.invoke(request);

 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Adding Hyperlink in email body

Not certain if the interface supports HTML. I have not seen where you can control the content type (text,html,multi-part). You will probably need to leave it as text/plain for now. If you just do the URL in text, the receiving client should pick it up as a link.