• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send Mail using Servlet with following error encountered..pls help  RSS feed

 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is:
In my machine(using tomocat), sending mail to anywhere has no problem.
But in another machine, if I send mail to the email under my domain, works fine, but send to other domain, it will output this error:
ENCOUNTERED EXCEPTION: javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses; nested exception is: javax.mail.SendFailedException: 550 5.7.1 ... Relaying denied

What is the possible problem?Thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You get a "relaying denied" when the return address on the mail you are sending is not a valid account on the mail server you are talking to. It thinks you are trying to send SPAM. evil!
Bill
 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no, it's internal company's email, now it's ok, but is it related to the network or smtp? It's terrible if sometimes can but not always
 
Ken Shamrock
Ranch Hand
Posts: 139
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this problem appear once again today, and afternoon returns normal...
 
qingwu wang
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should add aother DNS.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!