Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Bounce mail problems

Thread view: 
seeinfomani@gmail.com - 08 Aug 2007 09:38 GMT
I am using java mail for sending mails using SMTP server.
I want to track bounce mails. I want find reason, Bounce ID from that
bounce mail through my java program.
what is way to do that? can u help me?

manish
Andrew Thompson - 08 Aug 2007 09:57 GMT
>I am using ...

..the contributors to this usenet discussion group as though
they were a help desk?  It seems so, because..

>...java mail for sending mails using SMTP server.

If you had read this groups for a couple of days before
posting, you might have read a very recent discussion
on that very subject, and if you were to actually *search*
the archive of this group at Google Groups (God forbid!)
using the terms 'bounce' and 'mail', then sort those posts
by date, it will be right near the top.

If you cannot be bothered reading the group, GIYF

>...can u help me?

Can you help yourself?

Signature

Andrew Thompson
http://www.athompson.info/andrew/

Greg R. Broderick - 08 Aug 2007 17:34 GMT
> I am using java mail for sending mails using SMTP server.
> I want to track bounce mails. I want find reason, Bounce ID from that
> bounce mail through my java program.
> what is way to do that? can u help me?

From a recent posting on the same subject....

Subject: Re: java mail handling bounced messages
From: "Greg R. Broderick" <usenet200707@blackholio.dyndns.org>
Newsgroups: comp.lang.java.programmer

ameyas7 <amey.samant@gmail.com> wrote in news:1186065498.319240.38510
@d30g2000prg.googlegroups.com:

> hi all,
>
[quoted text clipped - 4 lines]
> the mail bounced for a particular mail address (in case there are
> multiple recepients).

A sent mail may 'bounce' in one of two ways:

1.  the SMTP server to which you (the mail user agent/mail client) are
sending the mail may reject the message either temporarily or permanently.
This is handled with an SMTP result code of 4xx (temporary failure) or
5xx (permanent failure), where the precise reasoning for the failure can
be determined from the other two digits of the result code.  Consult RFC
2821 for the gory technical details of SMTP response codes.  You may
detect and trap these in the sending SMTP client software immediately when
the message is sent -- this provides a synchronous feedback when the
message is immediately rejected.

2.  SMTP and the Internet mail architecture is, by design,
store-and-forward -- you send a message to an intermediate host (your
ISP's mail server) which stores the message and forwards it on to another
intermediate host, until it eventually reaches the recipient.  This
storage and forwarding happens after the initial sending of the message
from the mail client to the mail server has completed successfully, thus
no synchronous means is available to notify the mail client that the
message has been rejected or bounced by one of the intermediate hosts.
What most mail servers will do is to return an email message to the
putative sender's email box, containing an error message, indicating why
the message failed to be sent, and possibly the original message.  This
message may be retrieved from the sender's email box using whatever method
(usually POP3 or IMAP) the mail client normally uses to retrieve inbound
email messages.

Due to the nature of SMTP as a store-and-forward mail system, this can not
happen synchronously, thus no synchronous feedback is possible when one of
the intermediate hosts further down the line rejects the sender's email.

For more information, please consult the various Internet RFCs concerning
email and SMTP.

Cheers!
GRB

Signature

---------------------------------------------------------------------
Greg R. Broderick                  usenet200705@blackholio.dyndns.org

A. Top posters.
Q. What is the most annoying thing on Usenet?
---------------------------------------------------------------------



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.