File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Set MIME type text/html

 
Steven Mann
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)?

 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have had problems with this too; and if I remember correctly it works only with Gmail client on Android phones.
 
Steven Mann
Ranch Hand
Posts: 55
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic