Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to extract the smtp response code

843834Feb 1 2008 — edited Feb 1 2008
Hi,

I am trying to get the server response by SMTPTransport.getLastServerResponse(),
and getting the response as "250 2.0.0 OK 1201842889 c39sm4983397anc.25", in case of success.
This response would differ in case of failure.

Could please guide me as how to extract the response code from the result.

Thanks!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 29 2008
Added on Feb 1 2008
1 comment
235 views