I am working on email notifications Engine.
I am using java mail api 1.2 and smtp server to send email using .I am able to send emails when I use correct address .
Since I Also use Listeners to catch exceptions but
TransportEvent (Message Delivered) is triggered and no exceptions are being caught.
Even though I receive an undeliverable mail in my account on email server(I tried both firstClass and MS outlook Server).
Is there any setting that needs to be turned on to catch the exception.
Can anyone tell me what i am doing wrong??
//*******************************************************************************************
//The messages received by using listeners
DEBUG SMTP SENT: MAIL FROM:<jgangadharan@interchangedigital.net>
DEBUG SMTP RCVD: 250 2.1.0 jgangadharan@interchangedigital.net....Sender OK
DEBUG SMTP SENT: RCPT TO:<jgangadhanterchangedigital.com>
DEBUG SMTP RCVD: 250 2.1.5 jgangadhanterchangedigital.com@interchangedigital.net
Verified Addresses
jgangadhanterchangedigital.com
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 354 Start mail input; end with <CRLF>.<CRLF>
DEBUG SMTP SENT:
.
DEBUG SMTP RCVD: 250 2.6.0 <3482471.1014307338246.JavaMail.jgangadharan@mob2ks2
Queued mail for delivery
TransportListener.messageDelivered().Valid Addresses:
jgangadhanterchangedigital.com
DEBUG SMTP SENT: QUIT
ConnectionListener.closed()
//*******************************************************************************************