I tried these setting for the sending mail from my application. It's work fine and after some days . It's not working.
props.setProperty("mail.transport.protocol", "smtp");
props.setProperty("mail.host", "android.smtp.mail.yahoo.com");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.port", "465");
Error what I got is :
javax.mail.MessagingException: Could not connect to SMTP host: android.smtp.mail.yahoo.com, port: 465, response: -1
Edit 1: *******
props.put("mail.smtp.port", "587"); If I used this than I got the EOF xception
I got the properties from here :