File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes SMTP Error please make me understand Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

SMTP Error please make me understand

Talha-bin -Shakir
Ranch Hand

Joined: Jan 26, 2006
Posts: 32
When i Run my SMTP Page its gives me error

Unable to relay InternetAddress to ""

Please help me to understand this.
Dhanya Palanisamy
Ranch Hand

Joined: Oct 20, 2006
Posts: 61
From java FAQ:

Q: When I try to send a message, why do I get javax.mail.SendFailedException: 550 Unable to relay for my-address?

A: This is not a JavaMail problem. This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it. Typically, mail servers for an organization will be configured to allow mail from within the organization to be sent to other addresses within the organization, or to addresses external to the organization. It will also typically allow mail coming from an address external to an organization to be sent to addresses within the orgnaization. What it will typically not allow is mail coming from an address external to the organization to be sent (relayed) to another address also external to the organization. The configuration of the mail server determines whether such relaying is allowed, and which addresses are considered internal vs. external. Often mail servers will require you to authenticate before they will relay messages
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

See your other post on this topic.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: SMTP Error please make me understand
It's not a secret anymore!