• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 997
  • Last Modified:

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

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
Hoboly
Asked:
Hoboly
1 Solution
 
CEHJCommented:
0
 
Tomas Helgi JohannssonCommented:
             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
 
objectsCommented:
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now