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 Send Encrypted Emails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Send Encrypted Emails" Watch "Send Encrypted Emails" New topic

Send Encrypted Emails

Colin C. Pace

Joined: Mar 28, 2006
Posts: 2
is it possible to use the Java Mail API to send emails encrypted using an email certificate?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15081

A few years ago I wrote software that would periodically send and receive encrypted mail using the JavaMail API. We used Java 1.4 and we had to use the Bouncy Castle cryptography library to encrypt and decrypt the mail.

So yes, it is possible. Unfortunately it's already three years ago or so that I did this so I forgot all the details about how to do it. The Bouncy Castle website may contain some examples.
[ January 23, 2007: Message edited by: Jesper Young ]

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Send Encrypted Emails
It's not a secret anymore!