Hi all,
I am trying to send mail outside my smtp. I have tried both with and without authentication. I am getting the erorr as below. Can anybody tell me whether the following error has anything to do with the code or is it about mail sever setting? PLZ
DEBUG SMTP: Sending failed because of invalid destination addresses
RSET
250 Ok
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
com.sun.mail.smtp.SMTPAddressFailedException: 554 <
[email protected]>: Relay access denied
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTranspo rt.java:1196)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTr ansport.java:584)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)
at com.regalix.TestMailAuthenticator.main(TestMailAut henticator.java:57)
Ajit