As far as I know, there's nothing that can be done on the sending side.
John > -----Original Message----- > From: Kunal Shah [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 2:16 AM > To: tomcat user > Subject: RE: How to validate email address in JSP by using javax.mail? > > > suppose there is an domain xyz.com accepting mails for its > user > say there are a, b and c users and administrator which will > recieve mails for unresolve members > > i am sending one mail at [EMAIL PROTECTED] dummy is not valid > mailbox still the mesg will be delivered to administrator of > xyz.com. so there will be not send fail exception. > > what should be done in this case ? > > --kunal > > > -----Original Message----- > > From: Turner, John [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, October 09, 2002 7:33 PM > > To: 'Tomcat Users List' > > Subject: RE: How to validate email address in JSP > > by using javax.mail? > > > > > > > > Typically, there is no way to validate an email > > address. For various > > reasons, any mail administrator with half a brain > > turns off the VRFY command > > on their mailserver, which is the only 100% > > guaranteed way to validate an > > email address without sending a message and > > looking for a bounce or other > > error. > > > > Other than that, you can take some precautions on > > the processing end, like > > checking for minimum length, the presence of '@', > > and a valid MX lookup on > > the domain name, and even a valid connection to > > port 25 of the host listed > > in that MX record. All of that stuff, though, is > > regular Java, with nothing > > to do with javax.mail. > > > > You can always try and send the message, then > > look for SendFailedException, > > but you'd have to do the send first. > > > > John > > > > > > > -----Original Message----- > > > From: Jack Li [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, October 09, 2002 9:54 AM > > > To: '[EMAIL PROTECTED]' > > > Subject: How to validate email address in JSP > > by using javax.mail? > > > > > > > > > Hi, How to validate email address in JSP by > > using javax.mail? > > > > > > > > > > > > Thanks, > > > > > > Jack Li > > > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Everything you'll ever need on one web page > from News and Sport to Email and Music Charts > http://uk.my.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>