This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,900 Users
  • 2,269,775 Discussions
  • 7,916,823 Comments

Discussions

Java Email Client for private email

User_YWIZ9
User_YWIZ9 Member Posts: 3 Green Ribbon

Hi,

Java Email Client for private email is not working. Here's my code. It hangs there. The service provider says their server is fine:

  String from = "[email protected]";

   final String username = "service";//change accordingly

   final String password = "xxxxxx";//change accordingly


   // Assuming you are sending email through relay.jangosmtp.net

   String host = "mail.privateemail.com";


   Properties props = new Properties();

   props.put("mail.smtp.auth", "true");

   props.put("mail.smtp.starttls.enable", "true");

   props.put("mail.smtp.host", host);

   props.put("mail.smtp.port", "465");


Anyone tells me what's wrong?


A.

Tagged:

Answers