Solved

How to use javax.mail.internet.MimeMessage to decode and encode

Posted on 2010-11-26
3
987 Views
Last Modified: 2012-05-10
1. How to use javax.mail.internet.MimeMessage to decode automatically email in base64,double-quotable, etc..  to plain text

2. How to use javax.mail.internet.MimeMessage to encode email to base64 and output to a file without connecting to smtp server.

Thanks!
0
Comment
Question by:Hoboly
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 34216620
0
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 500 total points
ID: 34238928
             Hi!

Here are some email examples
http://www.java2s.com/Code/Java/Email/Email-Message.htm

The J2EE 6 API
http://download.oracle.com/javaee/6/api/

Look at the writeTo(OutputStream ... ) how to write to FileOutputStream or other Streams. :)

Hope this helps.

Regards,
    Tomas Helgi
0
 
LVL 92

Expert Comment

by:objects
ID: 34838513
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read this checklist to learn more about the 15 things you should never include in an email signature.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
This video teaches viewers about errors in exception handling.
This Micro Tutorial demonstrates  how Internet marketers work with competitive analysis data, and a common task in data preparation is creating separate column for domains. You will then extract from a list of URLs.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question