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
Developer
funkym
Posts: 39
Registered: ‎04-01-2008
My Device: Not Specified
Accepted Solution

HTMLBodyPart possible?

I am looking for sth. like the TextBodyPart but for HTML content. How would it be possible to create an email message with HTML content? 

 

I tried to use the TextBodyPart, add the HTML content using the constructor and setting the content type to "text/html". But this does not work as the content type is not set to the TextBodyPart (for whatever) reason. Did anyone do this before?

 

 

Please use plain text.
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTMLBodyPart possible?

There is a MimeBodyPart in OS 4.5 but everytime I've tried to use it to send an email through BIS it throws an unsupported operation exception.

 

It would be nice if RIM could provide us a working sample.

 

Jon

Please use plain text.
Developer
funkym
Posts: 39
Registered: ‎04-01-2008
My Device: Not Specified

Re: HTMLBodyPart possible?

I am waiting for an example too. It can't be that difficult as it is technically just a BodyPart with the HTML mime type and the HTML code as content. I tried all possible ways (I could imagine) but it didn't work :smileysad:
Please use plain text.
Administrator
MSohm
Posts: 14,243
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: HTMLBodyPart possible?

The sending of multipart HTML email is not currently supported.  The BlackBerry API set currently includes the ability to read multipart HTML/plain text messages that have arrived, but sending is not supported.

 

This sample shows how to access HTML email that has been sent to the BlackBerry.

 

How To - Access HTML email messages
Article Number: DB-00666

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800698/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTMLBodyPart possible?

Thanks Mark.

 

Are there any plans to add support for sending HTML email?

 

If so, will this require a BIS/BES upgrade, an OS update or both?  

 

Jon

Please use plain text.
Administrator
MSohm
Posts: 14,243
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
My Carrier: Bell

Re: HTMLBodyPart possible?

We're not able to comment on possible future features.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
jonberry
Posts: 484
Registered: ‎07-17-2008
My Device: Not Specified

Re: HTMLBodyPart possible?

Is sending Multipart HTML messages supported in 4.7?

 

Jon

Please use plain text.
Developer
Nidhi
Posts: 31
Registered: ‎10-09-2009
My Device: Not Specified

Re: HTMLBodyPart possible?

Hello,

 

Is sending of multipart html email is possible now?

 

Your help will be Appreciated

 

Thanks in Advance

Please use plain text.