RE: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Kunal Shah
hummm that means you should load the server for checking validity of email address by sending a mail to the address, as it is not assuring that it would be correct way to find out the validity of email. I think in that case, regular expression is much convinient way to go with. --kunal

Re: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Steven J. Owens
On Thu, Oct 10, 2002 at 11:46:20AM +0530, Kunal Shah wrote: 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

RE: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Kunal Shah
thats the wonderful idea. you are talking about doing something what mailing lists are doing . this is the way they check the validity of email address.. thanks a bunch --kunal -Original Message- From: Steven J. Owens [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 10, 2002

RE: How to validate email address in JSP by using javax.mail?

2002-10-10 Thread Turner, John
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

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John
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

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John
Cool, thanks for the tip. That's just address syntax, though, not whether there is actually a mailbox available to receive mail at that address, right? John -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 09, 2002 10:25 AM To: Tomcat

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Jack Li
Thanks, John. I see what you mean. But we got the email address from our web pages. Some people are sending disgusting messages with fake email addresses. So, we don't want to reply to those invalid email addresses. I tried to validate the email address by sending a confirmation mail. I am trying

Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Catalin Constantin
you could use a small java code and do the validation via regexp here is a DEMO: import java.lang.*; import java.util.*; import org.apache.oro.text.regex.*; public final class isEmail { public static boolean check(String email) { PatternMatcher matcher; PatternCompiler compiler;

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John
The typical way to validate email addresses is to send an email to that address. In the contents of that email message is a link back to your site, a unique link generated on the fly, unique to each email address submitted. The user can only see the link if they got the email message. If they

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Turner, John
You would also want to check length, not just characters used. The minimum length for a valid Internet email address is 6: [EMAIL PROTECTED] You would also want to check for at least 2 characters to the right of the last ., as one would be invalid. There are other checks you would want to do,

Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Catalin
you could use a small java code and do the validation via regexp here is a DEMO: import java.lang.*; import java.util.*; import org.apache.oro.text.regex.*; public final class isEmail { public static boolean check(String email) { PatternMatcher matcher; PatternCompiler compiler;

RE: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Kunal Shah
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

Re: How to validate email address in JSP by using javax.mail?

2002-10-09 Thread Jon Eaves
This isn't really a Tomcat question, but more of a general protocol question. The long answer is that you should look at mailing list software and see how they do it using acknowledgements. A good example of this is ezmlm which uses qmail as it's transport. Of course, you'll have to hold onto