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,430 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

744 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

13 Experts available now in Live!

Get 1:1 Help Now