09-14-2009 01:58 PM - edited 09-15-2009 06:51 AM
Hello.
Does anybody know how to add HTML to an email using the java api.
I am tried something like this but its not working.
String content = "Content-Type: text/html; charset=\"iso-8859-1\"\n" +
"Content-Transfer-Encoding: 7bit\n\n" +"<html><body><table>" ;
.......
content += "</table></body></html>";
Multipart mp = new Multipart();
BodyPart mbp = new MimeBodyPart(mp);
//bp.setContentType();
mbp.setContentType(ContentType.TYPE_MULTIPART_ALTERNATIVE_STRING);mbp.setContent(content);
m.setContent(mp);
Thanks!!
10-09-2009 03:35 PM
HI,
I also want to know , how to add html to an email using blackberry mail api.
Please let me know if one has any information about the same.
Thanks in advance
05-28-2010 04:05 AM
Blackberry can receive and display HTML mail, but not send.
07-09-2010 07:17 PM
Hi,
I'm trying to send HTML email using BB API,
are you sure that is not possible to send HTML mail?
07-10-2010 05:58 AM
if I create a message
Message email = new Message();
I can call email.setHeader()
no one had luck sending HTML email in this way?
07-10-2010 08:52 AM
I'm searching for a solution here but the only one that I have in mind actually
is to attach an HTML file, unfortunantly I don't like this solution. -_-
07-11-2010 01:38 PM
sending HTML as attachments seems to be good for a PC viewing but not really good
for blackberry viewing.
Blackberry isn't really good when rendering HTML attachment,
don't understand why since if I send the same HTML code in a HTML mail format it renders well...
07-16-2012 03:22 AM
Hi Everone,
Please post solution of this thread its urgent for me.