dcsimg
SendFailedException when I have a "to" address not within organisation
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   neal_ravindran
Posted On:   Wednesday, April 9, 2003 02:47 PM

I use the simplest java code example at http://developer.java.sun.com/developer/onlineTraining/JavaMail/exercises/MailSending/.
Usage of that is :

java MailExample "host" "from" "to"

If "from" and "to" are within the organisation then the message goes out fine. If "to" is say me@yahoo.com or me@hotmail.com then it I get :-

javax.mail.SendFailedException:Invalid Addresses

javax.mail.SendFailedException: 500 Relaying denied



What can be done so that I can email outside the organisation?

Re: SendFailedException when I have a "to" address not within organisation

Posted By:   Anonymous  
Posted On:   Thursday, June 19, 2003 04:43 PM

It is very likely that your mail server need authentication when sending e-mail outside local domain.

Check out the code from SMTP authentication at
http://www.javacommerce.com/articles/SendMailUsingAuthentication.java

Re: SendFailedException when I have a "to" address not within organisation

Posted By:   Christopher_Koenigsberg  
Posted On:   Thursday, April 10, 2003 06:46 AM

FAQ. Ask your postmaster/sysadmin.

About | Sitemap | Contact