aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes  Error in send Mail using Java Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark " Error in send Mail using Java Mail" Watch " Error in send Mail using Java Mail" New topic
Author

Error in send Mail using Java Mail

payal Jain
Ranch Hand

Joined: Dec 20, 2007
Posts: 50
I am trying to send mail using java mail services
and gets the exception...


Javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1294)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:635)
at javax.mail.Transport.send0(Transport.java:189)
at javax.mail.Transport.send(Transport.java:118)
at testMail.sendMail(testMail.java:40)
at testMail.main(testMail.java:58)
Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1145)
... 5 more


Please help me out to get rid of this exception.

Regards,
Payal.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

The error message is pretty clear: the SMTP server you're talking to is refusing to deliver email to the address you've given, for security reasons or otherwise. Talk to your system administrator.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in send Mail using Java Mail