Solved

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

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Suggested Solutions

Title # Comments Views Activity
java example issue 5 44
Setup GlassFish 4 35
JDBC performance 8 29
Delete .class files at every compile 4 20
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

749 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