I am Getting Send Failed Error for yahoo.com or hotmail.com
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ethiraj_krishnan
Posted On:   Wednesday, February 12, 2003 04:38 AM

I am not able send message for yahoo.com or hotmail.com it is throwing error javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 not local host yahoo.com, not a gateway at javax.mail.Transport.send0(Transport.java:218) at javax.mail.Transport.send(Transport.java:80) at email.EmaiSend.main(EmaiSend.java:47) Exception in thread "main" ********************************* This is my program Properties props = System.getProperties(); props.put("mail.smtp.host",outgoingMailServer); ja   More>>

I am not able send message for yahoo.com or hotmail.com it is throwing error


javax.mail.SendFailedException: Sending failed;
nested exception is:
class javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
class javax.mail.SendFailedException: 550 not local host yahoo.com, not a gateway

at javax.mail.Transport.send0(Transport.java:218)
at javax.mail.Transport.send(Transport.java:80)
at email.EmaiSend.main(EmaiSend.java:47)
Exception in thread "main"

*********************************
This is my program

Properties props = System.getProperties();
props.put("mail.smtp.host",outgoingMailServer);
javax.mail.Session mailsession = Session.getInstance(props,null);
Message message = new MimeMessage (mailsession);
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
*********************************

   <<Less

Re: I am Getting Send Failed Error for yahoo.com or hotmail.com

Posted By:   Christopher_Koenigsberg  
Posted On:   Wednesday, February 12, 2003 06:49 AM

javax.mail.SendFailedException: 550 not local host yahoo.com, not a gateway



That error is clear; your smtp server will not let you do this.

About | Sitemap | Contact