IntelliJ Java IDE
The moose likes Other JSE/JEE APIs and the fly likes Javamail - Invalid Address Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "Javamail - Invalid Address Problem" Watch "Javamail - Invalid Address Problem" New topic
Author

Javamail - Invalid Address Problem

Dave Turner
Ranch Hand

Joined: Mar 13, 2001
Posts: 60
hi,
I am receiving the following Exception when i attempt to send an email from my app.
This is my email address and it does exist, so i cannot understand why it is being assessed as invalid. Can anyone suggest what the problem might be and how to solve it?

Also, I would also like to know if there is any support provided for storing of Folders locally, or do I have to provide my own using the Serializable interface?
Thanks in advance
Dave
[ January 24, 2002: Message edited by: Dave Turner ]
Alagan Devika
Greenhorn

Joined: Jan 04, 2002
Posts: 17
Hi Dave,
We are working with JavaMail in our applications.
From the JavaMail FAQ i read the following.
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.
Just a Thought.
Shanthi
Dave Turner
Ranch Hand

Joined: Mar 13, 2001
Posts: 60
hi shanthi,
thanks for your reply, it seems that as you said it is a problem with the server, however i am able to use this smtp server with outlook express, yet my own java app will not do it.
Any idea why people?
shanthi said:
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.

Dave
Dave Turner
Ranch Hand

Joined: Mar 13, 2001
Posts: 60
Not to worry now i have figured out a way round it, which is to use my isp's smtp server.
Thanks again
Dave
 
 
subject: Javamail - Invalid Address Problem
 
Threads others viewed
Javax Mail API Question
cannot send email through Outlook
Email send failure
Java Mail error
JavaMail Error...
MyEclipse, The Clear Choice