File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes Is it possible to format mimeMessage text? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Is it possible to format mimeMessage text?" Watch "Is it possible to format mimeMessage text?" New topic
Author

Is it possible to format mimeMessage text?

Stefan Elfvinge
Ranch Hand

Joined: Oct 29, 2001
Posts: 52
Hi!
I'm using javax.mail in a webappliction. The message and subject vary as to who the recipient is, certain properties etc. To alert the reciever I would like to be able to use a BIG font sometimes in the message. Can someone tell if this is possible? Should I use java.awt.Font to somehow format the message?
Thanks in advance!


Steffe
Ankur Goyal
Greenhorn

Joined: Feb 04, 2002
Posts: 13
Create a mime message of 'text/html' content-type and use HTML tags to format ur content. It's like embedding an HTML page in ur email.


Let me know if I am wrong ! <img src="smile.gif" border="0">
Stefan Elfvinge
Ranch Hand

Joined: Oct 29, 2001
Posts: 52
Working excellent, thanks!!!
Garrett Smith
Ranch Hand

Joined: Jun 27, 2002
Posts: 401

The message and subject vary as to who the recipient is, certain properties etc

I just made an app component like this. I used java.text.MessageFormat. Works very well. Mimimal parameter passing. Mimimal String creation/concatenation/manipulation.
java.text.MessageFormat


comp.lang.javascript FAQ: http://jibbering.com/faq/
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is it possible to format mimeMessage text?
 
Similar Threads
Templates variable
Memory Saver - 1
Date Problem
format in a text field
Image IO problem