• Post Reply Bookmark Topic Watch Topic
  • New Topic

mail not sent on other addresses other than exchange server  RSS feed

 
Anil Prasad
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I want send mail through my exchange server.Problem is that whenever I give mail address other than my exchange server.My code generates exception

[2007-02-20 12:17:12.843 IST] (error) The mail has not been sent due to: (javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 Unable to relay for anil.kr.prasad@gmail.com
, )

Can any body help me out.Thanks in advance.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most email servers are configured to only send emails for accounts hosted on that server. It's a spam protection measure.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!