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

Java Development

Reply
Contributor
Posts: 49
Registered: ‎09-06-2010
My Device: Not Specified
My Carrier: mobile application developer

I have some proble to rendering content

Hi all,

 

(plz see the html content  in a red color)

 

 in my app i want to send a mail with a text  following(i.e. in red color text) and the effect of tag mainly i want to use hyperlink( <a href="">) means when user see the mail and click on the link the link will appear in a browser

 

so plz help me out how can i solve this problem. if any one have any idea plz let me know.

Thnax in advance

 

 

 

<body>
<p>
It's me again!  Not long ago I sent you and email about my participation
My team and I are working
harder then ever to raise as much money to fight this deadly disease.  
We are tired of hearing the words “You have cancer.  Help us end this!
Please help us make a difference. I know you can thats why I sent this
to you.  Thank you so much.  Please click on my link to make a donation
 every little bit helps!
</p>

<p>
<p>
<a href="www.xyz.com">Click here for more information.</a>
</p>
</p>

 

 

Thnax and regards

 

kiran kumar choudhary

 

Developer
Posts: 466
Registered: ‎03-04-2009
My Device: 8520
My Carrier: some

Re: I have some proble to rendering content

are you sure you can use HTML content as email body?

Got resolved! Press kudo icon!
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: I have some problem to rendering content

I have never tried to do this, but I suspect you might be able to get it to work.  You need to be running OS 4.5 or later on the Blackberry to see HTML content.  With that level it is possible to extract content from the HTML part of a message that comes in, the following KB article describes this.

 

http://supportforums.blackberry.com/t5/Java-Development/Access-HTML-email-messages/ta-p/444941

 

I suspect it should also be possible to send an email that has the same structure and it should be processed correctly.  But you might have to work a bit to create the correct BodyParts.  This Thread seems to have tried to do this and failed.  I have no idea why, but creating the structure of the email in this way is the approach that I would attempt.

 

http://supportforums.blackberry.com/t5/Java-Development/Sending-email-with-html-using-java-api/m-p/3...

 

There might be other Threads out these that talk about this, so search round. 

 

Good luck and please let us know how you get on.