posted 17 years ago
Hi,
We receive the below error while we are sending an email to 'dpmathew@it/matrix.com'.
javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.SendFailedException: Invalid Addresses;
nested exception is: javax.mail.SendFailedException: 501 5.1.3 Invalid address thrown from Error sending an email
My question here, Is this exception an occurance of an invalid email address since 'dpmathew@it/matrix.com' is not in RFC822 format? or is it trying to send email to a valid address and unable to deliver?
But a note here, we validated the email but it is not checking for the '/' in the email domain, but we are sending this inside the constructer 'InternetAddress(emailAddress)' which i beleive shld check for the RFC822 format and throw an AddressException. but this didn't happen. Any thoughts? Thanks.