Cannot send email to Hotmail and YahooMail using JavaMail

The following exception come out when the recipient email is an "hotmail" or "yahoo" email account :-

javax.mail.SendFailedException: Invalid Addresses;

nested exception is:

javax.mail.SendFailedException: 553 sorry, that domain isn't in my list

of allowed rcpthosts (#5.7.1)

at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:804)

at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:320)

at com.util.EMailGenerator.send(EMailGenerator.java:58)

at EmailEngineTask.performTask(EmailEngine.java:145)

at EmailEngineTask.run(EmailEngine.java:64)

any idea about what is the problem. Thank you.

I am using JavaMail to send my email....please help.

[740 byte] By [cj_khang] at [2007-9-30 22:26:15]
# 1

Looks like your outbound SMTP server is preventing delivery to those domains. Or more specifically, only allowing delivery to "allowed" domains.

This is most likely to stop spammers using the SMTP server as a relay. You wouldn't be trying to send spam would you?

A 553 error indicates:

553 Requested action not taken: mailbox name not allowed

The only solution is to add these domains to the list of allowed recipients at the SMTP server.

jasonpolites at 2007-7-7 12:49:31 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...