File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Android and the fly likes Set MIME type text/html Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Set MIME type text/html" Watch "Set MIME type text/html" New topic
Author

Set MIME type text/html

Steven Mann
Ranch Hand

Joined: Apr 05, 2010
Posts: 55
This code is supposed to work, but it doesn't. It renders correctly inside the android email client, but when I receive the email, it appears as plain text. How do I set the MIME type(Content-type: text/html)?


If love was a sandwich, I'd eat it.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369

I have had problems with this too; and if I remember correctly it works only with Gmail client on Android phones.


[List of FAQs] | [Android FAQ] | [Samuh Varta]
Steven Mann
Ranch Hand

Joined: Apr 05, 2010
Posts: 55
I think you are right: the solution was just to post the raw link in the body string: apparently text/plain will render links properly. I would like to make this sticky so we can collect other solutions, as this is a rather annoying problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Set MIME type text/html
 
Similar Threads
Mistakenly changed web.xml
text formatting in JavaMail!!!!!!!!!!! URGENT!!!!!!!!!
Tomcat showing error
Java to Display Data from Database
Getting no effect of " \n" while using setContent()