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 JavaMail/James: Handle email bouncebacks? 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 "JavaMail/James: Handle email bouncebacks?" Watch "JavaMail/James: Handle email bouncebacks?" New topic

JavaMail/James: Handle email bouncebacks?

Ted Bell
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
Hi all -

I am trying to gather some requirements for a project just starting up, and part of the request from marketing is to be able to track and maintain email bouncebacks via a custom admin screen. Currently we simply submit a simple email message to the sendmail server using JavaMail. To satisfy the request, we would need to be able to:

  • Treat bounced-back email messages differently based on the failure reason (mailbox full vs. invaid email address).
  • Identify different types of email messages we send in a more reliable manner than depending on the subject line (via some sort of custom ID we assign when sending).
  • Possibly configure the service to resend the email based on why it failed to deliver.
  • Manually resend the original (or send to an alternate address), requiring that the original email content be retained.
  • Somehow tie the email to a specific user in the system via some custom header info or the like, since an email address in our system need not be unique.

  • Anyone implemented one or more of these features using JavaMail and/or Apache James? Or perhaps integrated with a major third-party product which provides similar functionality and also allows for custom integration?

    Thanks for any help.
    Ulf Dittmer

    Joined: Mar 22, 2005
    Posts: 42965
    Yep, done all that with a J2EE/JavaMail client. We used Imail from Ipswitch as the mail server, but SMTP and POP3 being standards, it could have been any performant Windows mail server (not Exchange, though).
    bat ken

    Joined: Dec 28, 2005
    Posts: 24

    how to do that using j2ee/javamail client?I am new in Java, can u teach me how to code it?

    please help...

    Thank you.

    I agree. Here's the link:
    subject: JavaMail/James: Handle email bouncebacks?
    It's not a secret anymore!