File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes Java mail and encryption Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Java mail and encryption" Watch "Java mail and encryption" New topic

Java mail and encryption

Kev D'Arcy
Ranch Hand

Joined: Jul 26, 2001
Posts: 75
Anyone know if it's possible to send an encrypted e-mail
using the "javax.mail" package??
Bing Lu
Ranch Hand

Joined: Oct 10, 2000
Posts: 42
try j7(, of course it will cost you money
Pres Brawner
Ranch Hand

Joined: Jan 18, 2001
Posts: 92
You might try to encode using PGP first, then transmit. I've done that in Perl. If you then taking the result and store it in a file, you should be able to grab the contents and call it a message. Worth a try.
Michele Carissimi

Joined: Dec 03, 2001
Posts: 7
Why not use the Java Cryptography Extension (JCE) to encode the text of the email and then send it using the standard java mail classes?
If you dont want to use Sun's JCE, you can have a look at
I agree. Here's the link:
subject: Java mail and encryption
It's not a secret anymore!