This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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