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

2002-10-10 Thread Ralph Einfeldt
You can't do much, as you won't get a direct feedback. Typically the sender (from or reply-to) of the mail will get a feedback mail (but there is no garantee for that) from the receiving mail server. The format and content of the mail depends on the mail server and it's configuration (some

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

2002-10-10 Thread Ralph Einfeldt
But keep in mind that this isn't completly safe, as you won't know if the address really exists or the administrator (the fallback receiver) acted as the receiver. So this depends on what you really want to achieve and what requirements you have. -Ursprüngliche Nachricht- Von: Jon

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

2002-10-10 Thread Jon Eaves
Hi Ralph, (and others) Ralph Einfeldt wrote: But keep in mind that this isn't completly safe, as you won't know if the address really exists or the administrator (the fallback receiver) acted as the receiver. If the administrator isn't the person who initiated the transaction, he's going

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

2002-10-10 Thread Ralph Einfeldt
Of course you should check the syntax of the address before even opening a session to a mail server, but that was already discussed in this thread yesterday. With regular expression you won't know if a syntactical valid address is a real address. -Ursprüngliche Nachricht- Von:

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

2002-10-09 Thread Ralph Einfeldt
Not completly true. You can use JavaMail to check the syntax of the address against RFC822. (at least a subset of it) The constructor of javax.mail.internet.InternetAddress will throw a ParseException if it recognises an syntax error. To verify if the domain has an mx record have a look at:

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

2002-10-09 Thread Ralph Einfeldt
As I said, it's just a syntactical check. -Ursprüngliche Nachricht- Von: Turner, John [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 9. Oktober 2002 16:27 An: 'Tomcat Users List' Betreff: RE: How to validate email address in JSP by using javax.mail? Cool, thanks for the tip.