Link to home
Start Free TrialLog in
Avatar of david_m_jacobson
david_m_jacobsonFlag for Afghanistan

asked on

Java Program Sends out Email to Bad Email Address -- No 'mailer daemon' Response Received

I have written a Java program using the Java Mail functionality.  It sends out a set of emails to various email addresses.

I intentionally tested by putting in a fictitious email address, expecting to receive a response from the mailer daemon telling me that the email could not be delivered; but there was no such response.

I would not have thought that in this regard there would be a distinction between an email sent by Java code and an email sent, say, from my Outlook application.  Yet, there clearly is.

Can someone explain that and, hopefully, give me a way to insure that the mailer daemon will send me a response in the event of a bad address?

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of david_m_jacobson

ASKER

Pity.  OK.  Thanks for the response.
I need to correct what I said here.

I just found that, indeed, the mailer daemon WAS sending a response.  Gmail had put that email into the Spam folder with a warning that it appeared that that email was a response to an email that I hadn't sent.

Very interesting, and very clever of Gmail to have marked it so.

In any case, I was able to indicate that it was not Spam and thereafter, such an email from the mailer daemon IS getting through to me.

Thank you again for your interest in this issue.