Solved

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

Posted on 2010-11-26
3
985 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Are you irritated by repeating emails issue in Microsoft Outlook 2016 after recent update ?  Lets’ see how to resolve and prevent duplicate emails in the Outlook 2016 using some simple techniques.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

861 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