File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other JSE/JEE APIs and the fly likes how to detetct bounced emails ??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "how to detetct bounced emails ???" Watch "how to detetct bounced emails ???" New topic

how to detetct bounced emails ???

Ganesh Phapale

Joined: Dec 14, 2004
Posts: 21
I am working on mailing the newsletter.
I am picking the emails from the database and frwding the mails.

I want to know how the bounced emails will affect my server?

Is there any way to detect bounced emails so as to delete those enries from the database??

my mailing code is in jsp. and my server is SQL.

what r diffrent kind of bounces such as Hard Bounce , Soft Bounce etc..

pls help..........
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Not sure what this has to do with JSP... I'll move this to the 'Other Java APIs' forum since I assume you're using JavaMail, and the question has more to do with JavaMail than with JSP.

I did find something that may be of intrest to you, though. It looks like the Jakarta Commons Email API has some ideas on how to handle bounced emails.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

Is there any way to detect bounced emails so as to delete those enries from the database??

If you need to detect all bounced emails originating from your server, then the short answer is no, at least not in a way which can be 100% guarenteed.

The big issue with this is SMTP (by "email", I'm assuming you mean this protocol? ) doesn't define any uniform way to describe a delivery failure. There is another "standard" - a MIME type for reporting mail admin messages (see here if you are interested) - but it is not widely implemented. So there is not absolute guarentee that a delivery failure will result in a failure report, or that any failure report generated will be returned to the sending server. Even if it does, it may be of a type whereby you can't match a sent email with a particular delivery failure.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: how to detetct bounced emails ???
It's not a secret anymore!