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
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
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
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
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
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
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:
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
Hi, How to validate email address in JSP by using javax.mail?
Thanks,
Jack Li
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
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:
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
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
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;
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
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,
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.
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;
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
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
20 matches
Mail list logo