Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Javamail - Invalid Address Problem  RSS feed

 
Dave Turner
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not to worry now i have figured out a way round it, which is to use my isp's smtp server.
Thanks again
Dave
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!