Error – trustAnchors parameter must be non-empty

I’m trying to configure my e-mail on Jenkins/Hudson, and I constantly receive the error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty I’ve seen a good amount of information online about the error, but I have not gotten any to work. I’m using Sun’s JDK on Fedora Linux (not OpenJDK). Here are a few things I’ve … Read more

Sending Email in Android using JavaMail API without using the default/built-in app

I am trying to create a mail sending application in Android. If I use: Intent emailIntent = new Intent(android.content.Intent.ACTION_SEND); This will launch the built-in Android application; I’m trying to send the mail on button click directly without using this application. 26 s 26 Send e-mail in Android using the JavaMail API using Gmail authentication. Steps … Read more

Javamail Could not convert socket to TLS GMail

I am trying to send an email using JavaMail through gmails SMTP Server. however this code. final String username = “[email protected]”; final String password = “mygmailpassword”; Properties props = new Properties(); props.put(“mail.smtp.auth”, true); props.put(“mail.smtp.starttls.enable”, true); props.put(“mail.smtp.host”, “smtp.gmail.com”); props.put(“mail.smtp.port”, “587”); Session session = Session.getInstance(props, new javax.mail.Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username, password); } … Read more