on my own pc, SimpleSender runs fine when the email addr of the
recipient is on my smtp server. But if the addr is other than
my smtp server such as a yahoo mail account, I am getting
SendFailedException.
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1
<hornta...@yahoo.com>... Relaying denied. IP name lookup failed
[135.91.238.96]
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at SimpleSender.send(SimpleSender.java:77)
at SimpleSender.main(SimpleSender.java:27)
but if I run the same program on the smtp server, both the local
mail addr and the yahoo mail addr work fine there.
is this some setting/properties issue? why does it works on the
smtp host but not my pc? it is the same code!
any pointers appreciated,
Chin
Your SMTP server is refusing to act as an open relay, which is a good
thing. Do a google search for "open relay" and SMTP to find out more
about it.
--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
all I need to do is to add my pc to the relay-domain
of my SMTP server.
Chin