at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584) at javax.mail.Transport.send0(Transport.java:169) at javax.mail.Transport.send(Transport.java:98) at Reminder.sendMessage(Reminder.java:41) at Reminder.main(Reminder.java:92) Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 Authentication requ ired. Help at http://www.earthlink.net/go/emailsettings (failed to find host nam e from IP address)
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047) ... 5 more
I ve got this exception after reformating my code:
javax.mail.NoSuchProviderException: No provider for earthlink.net at javax.mail.Session.getProvider(Session.java:455) at javax.mail.Session.getTransport(Session.java:650) at javax.mail.Session.getTransport(Session.java:631) at Reminder.sendMessage(Reminder.java:42) at Reminder.main(Reminder.java:99)
If you click on the link in your previous error message, http://www.earthlink.net/go/emailsettings, you get a page that tells you how to configure various email clients to use Earthlink SMTP, including the correct name for the SMTP server.
You need to provide the mail server, which might be something like smtp.earthlink.net or mail.earthlink.net or some such. Consult the Earthlink documentation or online help to find what you need to put in there.