Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Mail error  RSS feed

 
Vu Pham
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a simple code that can send an email . But I had the following error :

javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class com.sun.mail.smtp.SMTPAddressFailedException: 550 found in list.ds
bl.org

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1141)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:536)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at SendMail.sendMail(SendMail.java:59)
at SendMail.<init>(SendMail.java:15)
at SendMail.main(SendMail.java:25)

I have googled but cant find any thing . Please help me . Thanks very much
 
Joe Ess
Bartender
Posts: 9425
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Plain and simple, it looks like you have a bad address. Can you send email using Outlook (or whatever email program you use) to the addresses you have in your program?
Did you configure a valid SMTP server in your program?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!