File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Other JSE/JEE APIs and the fly likes mail not sent on other addresses other than exchange server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "mail not sent on other addresses other than exchange server" Watch "mail not sent on other addresses other than exchange server" New topic
Author

mail not sent on other addresses other than exchange server

Anil Prasad
Greenhorn

Joined: Feb 22, 2006
Posts: 14
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
Marshal

Joined: Mar 22, 2005
Posts: 35241
    
    7
Most email servers are configured to only send emails for accounts hosted on that server. It's a spam protection measure.


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mail not sent on other addresses other than exchange server
 
Similar Threads
Javamail - Invalid Address Problem
SMTP Error please make me understand
Java Mail problem
urggently Java Mail Help
Send Mail using Servlet with following error encountered..pls help