File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Mobile » Android
Bookmark "Set MIME type text/html" Watch "Set MIME type text/html" New topic

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

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:
subject: Set MIME type text/html
It's not a secret anymore!