Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8899363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:50:12+00:00 2026-06-15T00:50:12+00:00

In jdk1.4 I can send mail, but when i try to send mail using

  • 0

In jdk1.4 I can send mail, but when i try to send mail using jdk1.6 I get the below exception.

My Working Environment.
========================
1.OS       :  windwos 2008
2.JAVA     :  JDK1.6
3.Mail Api :  java mail1.4
4.Email    :  gmail
5.smtp port:  465 or 587
Exception in thread "main" java.lang.RuntimeException: javax.mail.MessagingExcep
tion: Can't send command to SMTP host;
nested exception is:
    javax.net.ssl.SSLKeyException: RSA premaster secret error
    at SendMailTLS.main(SendMailTLS.java:47)
Caused by: javax.mail.MessagingException: Can't send command to SMTP host;
nested exception is:
    javax.net.ssl.SSLKeyException: RSA premaster secret error
    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1365)
    at com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1353)
    at com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:794)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:33
6)
    at javax.mail.Service.connect(Service.java:258)
    at javax.mail.Service.connect(Service.java:137)
    at javax.mail.Service.connect(Service.java:86)
    at javax.mail.Transport.send0(Transport.java:150)
    at javax.mail.Transport.send(Transport.java:80)
    at SendMailTLS.main(SendMailTLS.java:42)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T00:50:13+00:00Added an answer on June 15, 2026 at 12:50 am

    Are you using the lates version of JDK?
    Could you provide source code which not working?
    Please, show the output from mail code:

    • System.out.println(“Java version: ” + System.getProperty(“java.version”));
    • System.out.println(“Ext dirs: ” +System.getProperty(“java.ext.dirs”));
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Friends please help. I know that using jdk1.7 we can get the last access
My runtime environment is still on JDK1.4 but I like the Solr features related
I try run jconsole with jar that contains my classes like: cd C:\Program Files\Java\jdk1.6.0_26\bin
Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java
I can't run the java program in the CMD,but it's OK in the eclipse.
I have jdk1.6.0_13 installed, but when I try to find a javax.servlet package, or
I'm using a Windows .bat script and I set JAVA_HOME as C:/Program Files/Java/jdk1.6.0_32 when
I am using the javaFX 2.2 with jdk1.6 in a swing environment. I am
In Eclipse 3.4.1 using JDK1.6.0_10 how can I activate a warning on a missing
While I try to set java path on ~./bashrc file i exported like: PATH=/usr/local/jdk1.6.0/bin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.