Handling Bounced Emails - 'Errors-To'

I intend to use JavaMail to send emails. If there is an invalid address, the mail bounces back. Normally the mails bounce back to SMTP from but there is something called 'Errors-To' field also which if present causes all bounced emails to be sent to this address.

Does JavaMail also support this? pl. help

[334 byte] By [gill01] at [2007-9-26 8:19:33]
# 1
Your question does not make sense. The bouncing behaviour you describe is part of SMTP, which describes how e-mail servers should behave. But JavaMail is used to implement e-mail clients.
DrClap at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Actually, it makes perfect sense. The 'Error-To' header would be sent to the server by the client, telling the server where to send errors (i.e. recipient not found on remote end). SMTP is a client-server protocol, not a set of server specifications.Thanks,-Derek
slagdogg at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Where did you find out about this 'Errors-To' thing ? Because I'v searched in the rfc documents for SMTP (rfc 821 and rfc 2821), but I couldn't find any line in them specifying about 'Errors-To'.

Anyway, how I contact you in private ? I would like to discuss further with you about bounced emails management because I currently are working on a project that deals with this stuff. Mine is at firoux@yahoo.com.

Thanks.

firoux at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

Hi,

I read with keen interest about your project on handling bounced emails. I am very interested as I have an application that currently sends out emails in bulk. However, I do not not at all how I can track invalid email addresses that bounced back. Could you help me by shedding some information and your valuable experiences?

Many many thanks in advance!

timbaktu at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

Hi ,

I had a problem while sending bulk emails that if some ids are invalid, it does not send emails to the valid ids also. I am using Transport's sendMessage() and not send(). What's going wrong?

And regarding the invalid-ids, problem you specified, I was wondering if you can catch SendFailedException and then use it's following methods:

getInvalidAddressea9(), getvalidSentAddresses() and getValidUnsentAddresses.

-ks143

ks143 at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 6
Hi, i noticed you started off this chain a year ago and never got any real answer. i'm now looking at this same problem with getting Errors-To to work. any breakthroughs i'd appreciate. Thank you! From Ian
ianjava2 at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 7
I did a quick Google search, and found this on the first page: http://www.templetons.com/usenet-format/errormsg.htmlIt'd regarding newsgroup messages. I didn't look any further though.Jeff
JeffMuller at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 8

Jeff, thanks for looking into it. i ran some tests using this header field and its possible the mail server may need to be configured to interpret the header. the JavaMail API is doing its job in getting the header on the message, but the bounced email keeps going back to the from address. i'll look into the mail server configuration and let you know if i find anything.

ianjava2 at 2007-7-1 18:52:06 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...