Solved

Provide all possible statuses for javax.mail.SendFailedException i.e. "550 5.7.1 Unable to relay"

Posted on 2004-04-27
15
1,431 Views
Last Modified: 2013-11-24
Hello,

Where can I get all possible exception statuses for javax.mail.SendFailedException class of Java Mail.

For example this would be one exception status:
javax.mail.SendFailedException: 553 5.1.2 Bad recipient format -- no domain specified

(and another mentioned in the title of this question)

Thank you,
0
Comment
Question by:ok_lilya
  • 7
  • 6
  • 2
15 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 10931459
Probably from the source code ...
0
 

Author Comment

by:ok_lilya
ID: 10931493
This is an MKS site...??
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10931524
Don't understand you comment... You need to look into the javax.mail sourcecode
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10931585
Another way would be to look at the sending protocols and find out their error codes:

http://www.networksorcery.com/enp/protocol/imap.htm
http://www.modemhelp.net/smtperrors/smtpserver.shtml
0
 

Author Comment

by:ok_lilya
ID: 10931621
These links are not the ones for javax.mail

Also, I would love to look into javax.mail source code, but where do I get it from?
Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10931686
>>These links are not the ones for javax.mail

Those links are protocol-related, which is where the error codes come from in the first place

Source:

http://java.sun.com/products/javamail/FAQ.html#source
0
 

Author Comment

by:ok_lilya
ID: 10932396
I got the source files, but I still don't know where I can get all the statuses.

For example,
I'm looking fo: 553 5.1.2 Bad recipient format -- no domain specified

But in the links that you sent 553 means: Requested action not taken: mailbox name not allowed

Thanks
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 86

Expert Comment

by:CEHJ
ID: 10933114
I'd just unzip the source and then do a find on those codes
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 10934136
> I got the source files, but I still don't know where I can get all the statuses.

Thats not the place to look, the errors are coming from the mail server you are connecting to and will varying when connecting to different servers. Have a look at the server you are using for a list of error codes.
0
 

Author Comment

by:ok_lilya
ID: 10939029
Ok, thanks.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10939093
That's simply untrue - the error messages may be somewhat different, but the codes should not change per protocol and that's the important thing. Can you explain

a. why you accepted that answer ok_lilya?
b. what action you're going to take based upon that answer?
0
 

Author Comment

by:ok_lilya
ID: 10939169
CEHJ,

a. I accepted the answer because those errors are comming from the server and that is where I should look.
"I'd just unzip the source and then do a find on those codes" - the codes are not in the source.

b. I will look into the  serverto get the list of error codes.

I appreciate your help though,

Thanks.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 10939296
>>I accepted the answer because those errors are comming from the server

Of course they're coming from the server! The point is that servers implement protocols. If each one returned different error codes then they would not be implementing the protocol properly.
0
 

Author Comment

by:ok_lilya
ID: 10939395
What you are saying is true, but it is not what I asked for. I asked:
"I got the source files, but I still don't know where I can get all the statuses."

to which you answered:
"I'd just unzip the source and then do a find on those codes"

The point is that you told me to look into source of java mail, which is not where it is at.

0
 
LVL 92

Expert Comment

by:objects
ID: 10944546
Thanks :)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
create a gui in perl 3 72
what is the main difference between git clone and fetch ann pull and push commands 2 74
split string containing \r\n in Java 46 38
diffSum example 4 27
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now