Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Java in General and the fly likes Error in sending mail using ssl server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Error in sending mail using ssl server" Watch "Error in sending mail using ssl server" New topic
Author

Error in sending mail using ssl server

Rahul somanath
Greenhorn

Joined: Jul 12, 2010
Posts: 19
Hi All

Please help in resolving the below issue i am getting the following error while sending mail. I am using the IMAP server and it is ssl configured



Below is the source code of the program.



I have also added the certificate to my keystore using the following command and still i am facing this issue.

keytool -import -trustcacerts -alias root -file mail_test_com.crt -keystore keystore.jks
 
Consider Paul's rocket mass heater.
 
subject: Error in sending mail using ssl server